V8: Do not warn about unpublishing multiple languages for invar… (#6613)

This commit is contained in:
Kenn Jacobsen
2019-10-16 16:15:29 +02:00
committed by Sebastiaan Janssen
parent 0b395482f1
commit 008505354b
4 changed files with 3 additions and 17 deletions

View File

@@ -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);

View File

@@ -14,7 +14,7 @@
<localize key="defaultdialogs_confirmdelete">Are you sure you want to delete</localize> <strong>{{currentNode.name}}</strong>?
</p>
<div class="umb-alert umb-alert--warning" ng-show="hasMoreThanOneLanguage && !currentNode.trashed">
<div class="umb-alert umb-alert--warning" ng-show="currentNode.metaData.variesByCulture && !currentNode.trashed">
<localize key="defaultdialogs_variantdeletewarning">This will delete the node and all its languages. If you only want to delete one language go and unpublish it instead.</localize>
</div>