mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 04:44:25 +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)
|
->setFeature($feature)
|
||||||
->setEnabled($enabled);
|
->setEnabled($enabled);
|
||||||
$this->getTransport($this->request)->send($toggleFeature);
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user