mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
UX: better wording when there are no unused tags to delete
This commit is contained in:
parent
367de2594d
commit
96511e4548
@ -64,6 +64,12 @@ export default Controller.extend({
|
||||
.then(result => {
|
||||
const displayN = 20;
|
||||
const tags = result["tags"];
|
||||
|
||||
if (tags.length === 0) {
|
||||
bootbox.alert(I18n.t("tagging.delete_no_unused_tags"));
|
||||
return;
|
||||
}
|
||||
|
||||
const joinedTags = tags.slice(0, displayN).join(", ");
|
||||
var more = Math.max(0, tags.length - displayN);
|
||||
|
||||
|
@ -3355,6 +3355,7 @@ en:
|
||||
delete_unused_confirmation_more_tags:
|
||||
one: "%{tags} and %{count} more"
|
||||
other: "%{tags} and %{count} more"
|
||||
delete_no_unused_tags: "There are no unused tags."
|
||||
delete_unused: "Delete Unused Tags"
|
||||
delete_unused_description: "Delete all tags which are not attached to any topics or personal messages"
|
||||
cancel_delete_unused: "Cancel"
|
||||
|
Loading…
x
Reference in New Issue
Block a user