#3219 Validation error on templates when clicking "save"

Error with use of savebutton fixed, use the suppressNotification value to check state.
This commit is contained in:
Kim Holzmann
2018-10-10 23:06:18 +02:00
committed by Sebastiaan Janssen
parent fb277d80e7
commit 7a474c6fa4

View File

@@ -91,15 +91,15 @@
}, function (err) {
if (suppressNotification) {
vm.page.saveButtonState = "error";
vm.page.saveButtonState = "error";
localizationService.localizeMany(["speechBubbles_validationFailedHeader", "speechBubbles_validationFailedMessage"]).then(function(data){
var header = data[0];
var message = data[1];
notificationsService.error(header, message);
});
localizationService.localizeMany(["speechBubbles_validationFailedHeader", "speechBubbles_validationFailedMessage"]).then(function (data) {
var header = data[0];
var message = data[1];
notificationsService.error(header, message);
});
}
});
};