diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttypes/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/documenttypes/edit.controller.js
index 67d31c6d7f..1158e4b3df 100644
--- a/src/Umbraco.Web.UI.Client/src/views/documenttypes/edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/documenttypes/edit.controller.js
@@ -118,6 +118,7 @@
//Models builder mode:
vm.page.defaultButton = {
hotKey: "ctrl+s",
+ hotKeyWhenHidden: true,
labelKey: "buttons_save",
letter: "S",
type: "submit",
@@ -125,21 +126,38 @@
};
vm.page.subButtons = [{
hotKey: "ctrl+g",
- labelKey: "buttons_generateModels",
+ hotKeyWhenHidden: true,
+ labelKey: "buttons_saveAndGenerateModels",
letter: "G",
handler: function () {
vm.page.saveButtonState = "busy";
- notificationsService.info("Building models", "this can take abit of time, don't worry");
- contentTypeHelper.generateModels().then(function (result) {
- vm.page.saveButtonState = "init";
- //clear and add success
- notificationsService.success("Models Generated");
- }, function () {
- notificationsService.error("Models could not be generated");
- vm.page.saveButtonState = "error";
+ vm.save().then(function (result) {
+
+ vm.page.saveButtonState = "busy";
+
+ localizationService.localize("modelsBuilder_buildingModels").then(function (headerValue) {
+ localizationService.localize("modelsBuilder_waitingMessage").then(function(msgValue) {
+ notificationsService.info(headerValue, msgValue);
+ });
+ });
+
+ contentTypeHelper.generateModels().then(function (result) {
+ vm.page.saveButtonState = "init";
+ //clear and add success
+ localizationService.localize("modelsBuilder_modelsGenerated").then(function(value) {
+ notificationsService.success(value);
+ });
+ }, function () {
+ localizationService.localize("modelsBuilder_modelsGeneratedError").then(function(value) {
+ notificationsService.error(value);
+ });
+ vm.page.saveButtonState = "error";
+ });
+
});
+
}
}];
}
@@ -264,7 +282,7 @@
}
function init(contentType) {
-
+
// set all tab to inactive
if (contentType.groups.length !== 0) {
angular.forEach(contentType.groups, function (group) {
diff --git a/src/Umbraco.Web.UI.Client/src/views/mediatypes/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/mediatypes/edit.controller.js
index 8ece2cc9f1..1dd1597336 100644
--- a/src/Umbraco.Web.UI.Client/src/views/mediatypes/edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/mediatypes/edit.controller.js
@@ -103,6 +103,7 @@
//Models builder mode:
vm.page.defaultButton = {
hotKey: "ctrl+s",
+ hotKeyWhenHidden: true,
labelKey: "buttons_save",
letter: "S",
type: "submit",
@@ -110,21 +111,38 @@
};
vm.page.subButtons = [{
hotKey: "ctrl+g",
- labelKey: "buttons_generateModels",
+ hotKeyWhenHidden: true,
+ labelKey: "buttons_saveAndGenerateModels",
letter: "G",
handler: function () {
vm.page.saveButtonState = "busy";
- notificationsService.info("Building models", "this can take abit of time, don't worry");
- contentTypeHelper.generateModels().then(function(result) {
- vm.page.saveButtonState = "init";
- //clear and add success
- notificationsService.success("Models Generated");
- }, function() {
- notificationsService.error("Models could not be generated");
- vm.page.saveButtonState = "error";
+ vm.save().then(function (result) {
+
+ vm.page.saveButtonState = "busy";
+
+ localizationService.localize("modelsBuilder_buildingModels").then(function (headerValue) {
+ localizationService.localize("modelsBuilder_waitingMessage").then(function(msgValue) {
+ notificationsService.info(headerValue, msgValue);
+ });
+ });
+
+ contentTypeHelper.generateModels().then(function (result) {
+ vm.page.saveButtonState = "init";
+ //clear and add success
+ localizationService.localize("modelsBuilder_modelsGenerated").then(function(value) {
+ notificationsService.success(value);
+ });
+ }, function () {
+ localizationService.localize("modelsBuilder_modelsGeneratedError").then(function(value) {
+ notificationsService.error(value);
+ });
+ vm.page.saveButtonState = "error";
+ });
+
});
+
}
}];
}
@@ -243,7 +261,7 @@
}
function init(contentType) {
-
+
// set all tab to inactive
if (contentType.groups.length !== 0) {
angular.forEach(contentType.groups, function (group) {
diff --git a/src/Umbraco.Web.UI.Client/src/views/membertypes/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/membertypes/edit.controller.js
index 9c88f79015..5b7f11b096 100644
--- a/src/Umbraco.Web.UI.Client/src/views/membertypes/edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/membertypes/edit.controller.js
@@ -60,6 +60,7 @@
//Models builder mode:
vm.page.defaultButton = {
hotKey: "ctrl+s",
+ hotKeyWhenHidden: true,
labelKey: "buttons_save",
letter: "S",
type: "submit",
@@ -67,21 +68,39 @@
};
vm.page.subButtons = [{
hotKey: "ctrl+g",
- labelKey: "buttons_generateModels",
+ hotKeyWhenHidden: true,
+ labelKey: "buttons_saveAndGenerateModels",
letter: "G",
handler: function () {
vm.page.saveButtonState = "busy";
- notificationsService.info("Building models", "this can take abit of time, don't worry");
- contentTypeHelper.generateModels().then(function (result) {
- vm.page.saveButtonState = "init";
- //clear and add success
- notificationsService.success("Models Generated");
- }, function () {
- notificationsService.error("Models could not be generated");
- vm.page.saveButtonState = "error";
+ vm.save().then(function (result) {
+
+ vm.page.saveButtonState = "busy";
+
+ localizationService.localize("modelsBuilder_buildingModels").then(function (headerValue) {
+ localizationService.localize("modelsBuilder_waitingMessage").then(function(msgValue) {
+ notificationsService.info(headerValue, msgValue);
+ });
+ });
+
+ contentTypeHelper.generateModels().then(function (result) {
+ vm.page.saveButtonState = "init";
+ //clear and add success
+ localizationService.localize("modelsBuilder_modelsGenerated").then(function(value) {
+ notificationsService.success(value);
+ });
+ }, function () {
+ localizationService.localize("modelsBuilder_modelsGeneratedError").then(function(value) {
+ notificationsService.error(value);
+ });
+ vm.page.saveButtonState = "error";
+ });
+
+
});
+
}
}];
}
diff --git a/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml b/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
index b6b67c09de..eb378e319c 100644
--- a/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
+++ b/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
@@ -96,6 +96,7 @@
Don't worry - no content will be deleted and everything will continue working afterwards! -
+ ]]>No further actions needs to be taken. Click Next to proceed.]]>
This is an automated mail to inform you that the task '%1%' +
This is an automated mail to inform you that the task '%1%' has been performed on the page '%2%' by the user '%3%'
@@ -711,7 +712,7 @@ To manage your website, simply open the Umbraco back office and start adding con @@ -785,7 +786,7 @@ To manage your website, simply open the Umbraco back office and start adding con