[TASK] Add option to send reload hint to frontend
This commit is contained in:
parent
5a00a9a651
commit
5a435098dd
@ -99,6 +99,11 @@ class ActionController extends BaseController
|
|||||||
*/
|
*/
|
||||||
protected $redirect = null;
|
protected $redirect = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* if to reload
|
||||||
|
*/
|
||||||
|
protected $reload = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* errors
|
* errors
|
||||||
*/
|
*/
|
||||||
@ -720,6 +725,9 @@ class ActionController extends BaseController
|
|||||||
if ($this->redirect) {
|
if ($this->redirect) {
|
||||||
$result['redirect'] = $this->redirect;
|
$result['redirect'] = $this->redirect;
|
||||||
}
|
}
|
||||||
|
if ($this->reload) {
|
||||||
|
$result['reload'] = true;
|
||||||
|
}
|
||||||
return json_encode($result);
|
return json_encode($result);
|
||||||
}
|
}
|
||||||
$result = array_merge(
|
$result = array_merge(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user