ToggleInstanceFeaturesCommandForm::onSuccess(): show a notification for each feature about whether it has been enabled or disabled

fixes #9023
This commit is contained in:
Alexander A. Klimov 2015-05-15 17:01:28 +02:00
parent 2cbcea25cb
commit 58434d9743
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}
}