[icinga-checkins] icinga.org: icingaweb2-module-director/feature/service-set-12891: Import/ SyncruleController: autorefresh

git at icinga.org git at icinga.org
Thu Oct 20 09:26:57 CEST 2016


Module: icingaweb2-module-director
Branch: feature/service-set-12891
Commit: 8679dc8a943e3a8d450a1b2841fd645bd4f42ee9
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=8679dc8a943e3a8d450a1b2841fd645bd4f42ee9

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Oct 18 17:34:18 2016 +0000

Import/SyncruleController: autorefresh

---

 application/controllers/ImportsourceController.php |    1 +
 application/controllers/SyncruleController.php     |    1 +
 2 files changed, 2 insertions(+)

diff --git a/application/controllers/ImportsourceController.php b/application/controllers/ImportsourceController.php
index 5892c4d..1a3cfaf 100644
--- a/application/controllers/ImportsourceController.php
+++ b/application/controllers/ImportsourceController.php
@@ -13,6 +13,7 @@ class ImportsourceController extends ActionController
 {
     public function indexAction()
     {
+        $this->setAutoRefreshInterval(10);
         $id = $this->params->get('id');
         $this->prepareTabs($id)->activate('show');
         $source = $this->view->source = ImportSource::load($id, $this->db());
diff --git a/application/controllers/SyncruleController.php b/application/controllers/SyncruleController.php
index 5220120..ae239f8 100644
--- a/application/controllers/SyncruleController.php
+++ b/application/controllers/SyncruleController.php
@@ -14,6 +14,7 @@ class SyncruleController extends ActionController
 {
     public function indexAction()
     {
+        $this->setAutoRefreshInterval(10);
         $id = $this->params->get('id');
         $this->prepareRuleTabs($id)->activate('show');
         $rule = $this->view->rule = SyncRule::load($id, $this->db());



More information about the icinga-checkins mailing list