UX: do not pre-select blank tag on append tags bulk action (#12801)

UX: show progress screen only when more than 20 topics are selected
This commit is contained in:
Arpit Jalan 2021-04-22 20:32:15 +05:30 committed by GitHub
parent fd6f0db788
commit 1e9301d4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,10 @@ export default Controller.extend(ModalFunctionality, {
perform(operation) {
this.set("processedTopicCount", 0);
this.send("changeBulkTemplate", "modal/bulk-progress");
if (this.get("model.topics").length > 20) {
this.send("changeBulkTemplate", "modal/bulk-progress");
}
this.set("loading", true);
return this._processChunks(operation)
@ -215,7 +218,7 @@ export default Controller.extend(ModalFunctionality, {
},
showAppendTagTopics() {
this.set("tags", "");
this.set("tags", null);
this.set("action", "appendTags");
this.set("label", "append_tags");
this.set("title", "choose_append_tags");