UX: add a confirmation modal to "Remove All Tags" action (#11973)

UX: update label for "Remove Tags" action
This commit is contained in:
Arpit Jalan
2021-02-04 18:30:01 +05:30
committed by GitHub
parent 06225abe93
commit 309adb82ba
2 changed files with 14 additions and 2 deletions

View File

@@ -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" });
}
}
);
},
},
});