Bugfix: saveError undefined, should be serverError

Bugfix: dot should be comma
This commit is contained in:
djmaze 2021-01-20 12:04:27 +01:00
parent ca91a6e408
commit d9118fbf90
3 changed files with 15 additions and 14 deletions

View file

@ -82,8 +82,8 @@ class FiltersUserSettings {
this.scripts.remove(script);
delegateRunOnDestroy(script);
} else {
this.saveError(true);
this.saveErrorText((data && data.ErrorCode)
this.serverError(true);
this.serverErrorDesc((data && data.ErrorCode)
? (data.ErrorMessageAdditional || getNotification(data.ErrorCode))
: getNotification(Notification.CantActivateFiltersScript)
);
@ -101,8 +101,8 @@ class FiltersUserSettings {
if (StorageResultType.Success === result && data && data.Result) {
this.scripts().forEach(script => script.active(script.name() === name));
} else {
this.saveError(true);
this.saveErrorText((data && data.ErrorCode)
this.serverError(true);
this.serverErrorDesc((data && data.ErrorCode)
? (data.ErrorMessageAdditional || getNotification(data.ErrorCode))
: getNotification(Notification.CantActivateFiltersScript)
);