#6896 - Added notifications for Cultures and Hostnames save event. Notifcations are in english and danish so far. (#6899)

This commit is contained in:
Niels Odgaard
2020-01-06 20:29:57 +01:00
committed by Kenn Jacobsen
parent 617216e0c9
commit 91b36fc512
4 changed files with 13 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
(function () {
"use strict";
function AssignDomainController($scope, localizationService, languageResource, contentResource, navigationService) {
function AssignDomainController($scope, localizationService, languageResource, contentResource, navigationService, notificationsService) {
var vm = this;
vm.closeDialog = closeDialog;
@@ -114,8 +114,10 @@
// validation is interesting. Check if response is valid
if(response.valid) {
vm.submitButtonState = "success";
localizationService.localize('speechBubbles_editCulturesAndHostnamesSaved').then(function(value) {
notificationsService.success(value);
});
closeDialog();
// show validation messages for each domain
@@ -129,6 +131,9 @@
});
});
vm.submitButtonState = "error";
localizationService.localize('speechBubbles_editCulturesAndHostnamesError').then(function(value) {
notificationsService.error(value);
});
}
}, function (e) {

View File

@@ -1178,6 +1178,8 @@ Mange hilsner fra Umbraco robotten
<key alias="editUserSaved">Bruger gemt</key>
<key alias="editUserTypeSaved">Brugertype gemt</key>
<key alias="editUserGroupSaved">Brugergruppe gemt</key>
<key alias="editCulturesAndHostnamesSaved">Sprog og domæner gemt</key>
<key alias="editCulturesAndHostnamesError">Der opstod en fejl ved at gemme sprog og domæner</key>
<key alias="fileErrorHeader">Fil ikke gemt</key>
<key alias="fileErrorText">Filen kunne ikke gemmes. Tjek filrettighederne</key>
<key alias="fileSavedHeader">Fil gemt</key>

View File

@@ -1406,6 +1406,8 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="editUserSaved">User Saved</key>
<key alias="editUserTypeSaved">User type saved</key>
<key alias="editUserGroupSaved">User group saved</key>
<key alias="editCulturesAndHostnamesSaved">Cultures and hostnames saved</key>
<key alias="editCulturesAndHostnamesError">Error saving cultures and hostnames</key>
<key alias="fileErrorHeader">File not saved</key>
<key alias="fileErrorText">file could not be saved. Please check file permissions</key>
<key alias="fileSavedHeader">File saved</key>

View File

@@ -1411,6 +1411,8 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="editUserSaved">User Saved</key>
<key alias="editUserTypeSaved">User type saved</key>
<key alias="editUserGroupSaved">User group saved</key>
<key alias="editCulturesAndHostnamesSaved">Cultures and hostnames saved</key>
<key alias="editCulturesAndHostnamesError">Error saving cultures and hostnames</key>
<key alias="fileErrorHeader">File not saved</key>
<key alias="fileErrorText">file could not be saved. Please check file permissions</key>
<key alias="fileSavedHeader">File saved</key>