diff --git a/src/Umbraco.Web.UI.Client/src/views/components/users/change-password.html b/src/Umbraco.Web.UI.Client/src/views/components/users/change-password.html
index 38ea13eebb..b6e0b4c123 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/users/change-password.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/users/change-password.html
@@ -14,8 +14,10 @@
-
+
+ {{changePasswordForm.resetPassword.errorMsg}}
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
index 4cf4444cfe..71e19651d6 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
+++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
@@ -19,8 +19,8 @@
name="publishVariantSelector"
model="variant.publish"
on-change="vm.changeSelection(variant)"
- server-validation-field="{{variant.htmlId}}"
- >
+ server-validation-field="{{variant.htmlId}}">
+
*
@@ -38,6 +38,7 @@
{{publishVariantSelectorForm.publishVariantSelector.errorMsg}}
+
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
index 095c4f3fe1..5d4cc7eec7 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
@@ -5,23 +5,28 @@
var vm = this;
- vm.includeUnpublished = false;
+ vm.includeUnpublished = $scope.model.includeUnpublished || false;
vm.changeSelection = changeSelection;
vm.toggleIncludeUnpublished = toggleIncludeUnpublished;
-
function onInit() {
vm.variants = $scope.model.variants;
- vm.displayVariants = vm.variants.slice(0);// shallow copy, we dont want to share the array-object(because we will be performing a sort method) but each entry should be shared (because we need validation and notifications).
+ vm.displayVariants = vm.variants.slice(0); // shallow copy, we don't want to share the array-object (because we will be performing a sort method) but each entry should be shared (because we need validation and notifications).
vm.labels = {};
+ // get localized texts for use in directives
if (!$scope.model.title) {
localizationService.localize("buttons_publishDescendants").then(function (value) {
$scope.model.title = value;
});
}
+ if (!vm.labels.includeUnpublished) {
+ localizationService.localize("content_includeUnpublished").then(function (value) {
+ vm.labels.includeUnpublished = value;
+ });
+ }
_.each(vm.variants, function (variant) {
variant.isMandatory = isMandatoryFilter(variant);
@@ -72,8 +77,9 @@
}
function toggleIncludeUnpublished() {
- console.log("toggleIncludeUnpublished")
vm.includeUnpublished = !vm.includeUnpublished;
+ // make sure this value is pushed back to the scope
+ $scope.model.includeUnpublished = vm.includeUnpublished;
}
/** Returns true if publishing is possible based on if there are un-published mandatory languages */
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
index 2a983b229c..cfc185818c 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
+++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.html
@@ -6,15 +6,13 @@