config/module(enable|disable): Perform a HTTP redirect upon success
An HTTP redirect will cause a full reload. If our cache works, CSS and JS is automatically refreshed.
This commit is contained in:
parent
384d9535a9
commit
95e20d443c
|
@ -180,7 +180,7 @@ class ConfigController extends Controller
|
||||||
Icinga::app()->getModuleManager()->enableModule($module);
|
Icinga::app()->getModuleManager()->enableModule($module);
|
||||||
Notification::success(sprintf($this->translate('Module "%s" enabled'), $module));
|
Notification::success(sprintf($this->translate('Module "%s" enabled'), $module));
|
||||||
$form->onSuccess();
|
$form->onSuccess();
|
||||||
$this->rerenderLayout()->reloadCss()->redirectNow('config/modules');
|
$this->redirectHttp('config/modules');
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -206,7 +206,7 @@ class ConfigController extends Controller
|
||||||
Icinga::app()->getModuleManager()->disableModule($module);
|
Icinga::app()->getModuleManager()->disableModule($module);
|
||||||
Notification::success(sprintf($this->translate('Module "%s" disabled'), $module));
|
Notification::success(sprintf($this->translate('Module "%s" disabled'), $module));
|
||||||
$form->onSuccess();
|
$form->onSuccess();
|
||||||
$this->rerenderLayout()->reloadCss()->redirectNow('config/modules');
|
$this->redirectHttp('config/modules');
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue