Skip to content

Commit

Permalink
Added more detailed message when deleting items in the list view (#11375
Browse files Browse the repository at this point in the history
)

* Added more detailed message when deleting items in the list view

* Update FR language file

(cherry picked from commit 14fe7d9)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
  • Loading branch information
prjseal authored and nul800sebastiaan committed Nov 3, 2021
1 parent c7b2857 commit 9a6a7ff
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function listViewController($scope, $interpolate, $routeParams, $injector, $time
});
}

$scope.delete = function () {
$scope.delete = function (numberOfItems, totalItems) {

const dialog = {
view: "views/propertyeditors/listview/overlays/delete.html",
Expand All @@ -394,7 +394,9 @@ function listViewController($scope, $interpolate, $routeParams, $injector, $time
},
close: function () {
overlayService.close();
}
},
numberOfItems: numberOfItems,
totalItems: totalItems
};

localizationService.localize("general_delete").then(value => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
button-style="white"
label-key="actions_delete"
icon="icon-trash"
action="delete()"
action="delete(selection.length, listViewResultSet.items.length)"
disabled="actionInProgress"
size="xs"
add-ellipsis="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>

<p class="abstract">
<localize key="defaultdialogs_confirmdelete"></localize>?
<localize key="defaultdialogs_confirmdeleteNumberOfItems" tokens="[model.numberOfItems, model.totalItems]"></localize>?
</p>

<div class="umb-alert umb-alert--warning" ng-show="model.deletesVariants && !model.isTrashed">
Expand Down
2 changes: 1 addition & 1 deletion src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
<key alias="assignDomain">Manage hostnames</key>
<key alias="closeThisWindow">Close this window</key>
<key alias="confirmdelete">Are you sure you want to delete</key>
<key alias="confirmdeleteXofX">Are you sure you want to delete %0% based on %1%</key>
<key alias="confirmdeleteNumberOfItems"><![CDATA[Are you sure you want to delete <b>%0%</b> of <b>%1%</b> items]]></key>
<key alias="confirmdisable">Are you sure you want to disable</key>
<key alias="confirmremove">Are you sure you want to remove</key>
<key alias="confirmremoveusageof"><![CDATA[Are you sure you want to remove the usage of <b>%0%</b>]]></key>
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@
<key alias="anchorInsert">Name</key>
<key alias="closeThisWindow">Close this window</key>
<key alias="confirmdelete">Are you sure you want to delete</key>
<key alias="confirmdeleteNumberOfItems"><![CDATA[Are you sure you want to delete <b>%0%</b> of <b>%1%</b> items]]></key>
<key alias="confirmdisable">Are you sure you want to disable</key>
<key alias="confirmremove">Are you sure you want to remove</key>
<key alias="confirmremoveusageof"><![CDATA[Are you sure you want to remove the usage of <b>%0%</b>]]></key>
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/fr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@
<key alias="anchorInsert">Nom</key>
<key alias="closeThisWindow">Fermer cette fenêtre</key>
<key alias="confirmdelete">Êtes-vous certain(e) de vouloir supprimer</key>
<key alias="confirmdeleteNumberOfItems"><![CDATA[Êtes-vous certain(e) de vouloir supprimer <b>%0%</b> des <b>%1%</b> éléments]]></key>
<key alias="confirmdisable">Êtes-vous certain(e) de vouloir désactiver</key>
<key alias="confirmlogout">Êtes-vous certain(e)?</key>
<key alias="confirmSure">Êtes-vous certain(e)?</key>
Expand Down

0 comments on commit 9a6a7ff

Please sign in to comment.