mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
ca0914644c
commit
b9c9f564ec
@ -185,6 +185,17 @@ class PreferenceForm extends Form
|
||||
)
|
||||
);
|
||||
|
||||
$this->addElement(
|
||||
'checkbox',
|
||||
'auto_refresh',
|
||||
array(
|
||||
'required' => false,
|
||||
'label' => $this->translate('Enable auto refresh'),
|
||||
'description' => $this->translate('This option allows you to enable or to disable the global page content auto refresh'),
|
||||
'value' => 1
|
||||
)
|
||||
);
|
||||
|
||||
if ($this->store) {
|
||||
$this->addElement(
|
||||
'submit',
|
||||
|
@ -399,6 +399,10 @@ class ActionController extends Zend_Controller_Action
|
||||
$layout->benchmark = $this->renderBenchmark();
|
||||
}
|
||||
}
|
||||
|
||||
if ((bool) $user->getPreferences()->getValue('icingaweb', 'auto_refresh', true) === false) {
|
||||
$this->disableAutoRefresh();
|
||||
}
|
||||
}
|
||||
|
||||
if ($req->getParam('format') === 'pdf') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user