[TASK] Add option to send reload hint to frontend

This commit is contained in:
Philipp Dieter 2021-06-03 12:50:38 +02:00
parent 5a00a9a651
commit 5a435098dd

View File

@ -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(