mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: add a confirmation modal to "Remove All Tags" action (#11973)
UX: update label for "Remove Tags" action
This commit is contained in:
parent
06225abe93
commit
309adb82ba
@ -255,7 +255,16 @@ export default Controller.extend(ModalFunctionality, {
|
||||
},
|
||||
|
||||
removeTags() {
|
||||
this.performAndRefresh({ type: "remove_tags" });
|
||||
bootbox.confirm(
|
||||
I18n.t("topics.bulk.confirm_remove_tags", {
|
||||
count: this.get("model.topics").length,
|
||||
}),
|
||||
(result) => {
|
||||
if (result) {
|
||||
this.performAndRefresh({ type: "remove_tags" });
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@ -2266,7 +2266,10 @@ en:
|
||||
choose_new_tags: "Choose new tags for these topics:"
|
||||
choose_append_tags: "Choose new tags to append for these topics:"
|
||||
changed_tags: "The tags of those topics were changed."
|
||||
remove_tags: "Remove Tags"
|
||||
remove_tags: "Remove All Tags"
|
||||
confirm_remove_tags:
|
||||
one: "All tags will be removed from this topic. Are you sure?"
|
||||
other: "All tags will be removed from <b>%{count}</b> topics. Are you sure?"
|
||||
progress:
|
||||
one: "Progress: <strong>%{count}</strong> topic"
|
||||
other: "Progress: <strong>%{count}</strong> topics"
|
||||
|
Loading…
Reference in New Issue
Block a user