From 008505354b9a04ab6ea51c5cb9b232f159148644 Mon Sep 17 00:00:00 2001
From: Kenn Jacobsen
Date: Wed, 16 Oct 2019 16:15:29 +0200
Subject: [PATCH] =?UTF-8?q?V8:=20Do=20not=20warn=20about=20unpublishing=20?=
=?UTF-8?q?multiple=20languages=20for=20invar=E2=80=A6=20(#6613)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/content/content.delete.controller.js | 14 --------------
.../src/views/content/delete.html | 2 +-
src/Umbraco.Web.UI/Umbraco/config/lang/en.xml | 2 +-
src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml | 2 +-
4 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js
index 60a04732f0b3..a0eb80b2dddc 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js
@@ -80,20 +80,6 @@ function ContentDeleteController($scope, $timeout, contentResource, treeService,
$scope.close = function () {
navigationService.hideDialog();
};
-
-
- languageResource.getAll().then(function (data) {
-
- $scope.hasMoreThanOneLanguage = data.length > 1;
- }, function (err) {
- toggleDeleting(false);
-
- //check if response is ysod
- if (err.status && err.status >= 500) {
- // TODO: All YSOD handling should be done with an interceptor
- overlayService.ysod(err);
- }
- });
}
angular.module("umbraco").controller("Umbraco.Editors.Content.DeleteController", ContentDeleteController);
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/delete.html b/src/Umbraco.Web.UI.Client/src/views/content/delete.html
index 9a88428173b1..316d0669c4b5 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/delete.html
+++ b/src/Umbraco.Web.UI.Client/src/views/content/delete.html
@@ -14,7 +14,7 @@
Are you sure you want to delete {{currentNode.name}}?
-
+
This will delete the node and all its languages. If you only want to delete one language go and unpublish it instead.
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
index 0e87eb7898bc..11ce7a716a36 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
@@ -477,7 +477,7 @@
account
Select editor
Select snippet
-
This will delete the node and all its languages. If you only want to delete one language go and unpublish it instead.
+
This will delete the node and all its languages. If you only want to delete one language, you should unpublish the node in that language instead.
There are no dictionary items.
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 a867aff69b44..f5c3127d8e28 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
@@ -480,7 +480,7 @@
account
Select editor
Select snippet
-
This will delete the node and all its languages. If you only want to delete one language go and unpublish it instead.
+
This will delete the node and all its languages. If you only want to delete one language, you should unpublish the node in that language instead.
There are no dictionary items.