From 5a435098dde3df4f18f2fbb78d5bc51e4471df82 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Thu, 3 Jun 2021 12:50:38 +0200 Subject: [PATCH] [TASK] Add option to send reload hint to frontend --- Classes/Controller/ActionController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Classes/Controller/ActionController.php b/Classes/Controller/ActionController.php index c8b75f6..4671417 100644 --- a/Classes/Controller/ActionController.php +++ b/Classes/Controller/ActionController.php @@ -99,6 +99,11 @@ class ActionController extends BaseController */ protected $redirect = null; + /** + * if to reload + */ + protected $reload = null; + /** * errors */ @@ -720,6 +725,9 @@ class ActionController extends BaseController if ($this->redirect) { $result['redirect'] = $this->redirect; } + if ($this->reload) { + $result['reload'] = true; + } return json_encode($result); } $result = array_merge(