mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
ToggleInstanceFeaturesCommandForm::onSuccess(): show a notification for each feature about whether it has been enabled or disabled
fixes #9023
This commit is contained in:
parent
2cbcea25cb
commit
58434d9743
@ -215,8 +215,14 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
|
||||
->setFeature($feature)
|
||||
->setEnabled($enabled);
|
||||
$this->getTransport($this->request)->send($toggleFeature);
|
||||
|
||||
if ($this->status->{$feature} != $enabled) {
|
||||
Notification::success($enabled
|
||||
? $this->translate('Enabling feature..')
|
||||
: $this->translate('Disabling feature..')
|
||||
);
|
||||
}
|
||||
}
|
||||
Notification::success($this->translate('Toggling feature..'));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user