SyncForms: restore notifications on "no change"

This commit is contained in:
Thomas Gelf 2018-05-24 20:50:49 +02:00
parent 9c9a5b5b93
commit 9cdfc3d3be
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class SyncCheckForm extends DirectorForm
$this->addHtml($html);
} elseif ($this->rule->get('sync_state') === 'in-sync') {
$this->setSuccessMessage(
$this->notifySuccess(
$this->translate('Nothing would change, this rule is still in sync')
);
} else {

View File

@ -35,7 +35,7 @@ class SyncRunForm extends DirectorForm
$this->translate(('Source has successfully been synchronized'))
);
} elseif ($rule->get('sync_state') === 'in-sync') {
$this->setSuccessMessage(
$this->notifySuccess(
$this->translate('Nothing changed, rule is in sync')
);
} else {