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:
@@ -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" });
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user