FIX: Display tag related actions only if tagging is enabled. (#6136)

The affected buttons are "Replace Tags" and "Append Tags".
This commit is contained in:
Dan Ungureanu 2018-07-23 04:35:08 +02:00 committed by Sam
parent f8e9190617
commit ba73d91e3b
1 changed files with 4 additions and 2 deletions

View File

@ -36,8 +36,10 @@ addBulkButton("relistTopics", "relist_topics", {
icon: "eye",
buttonVisible: topics => topics.some(t => !t.visible)
});
addBulkButton("showTagTopics", "change_tags", { icon: "tag" });
addBulkButton("showAppendTagTopics", "append_tags", { icon: "tag" });
if (Discourse.SiteSettings.tagging_enabled) {
addBulkButton("showTagTopics", "change_tags", { icon: "tag" });
addBulkButton("showAppendTagTopics", "append_tags", { icon: "tag" });
}
addBulkButton("deleteTopics", "delete", { icon: "trash", class: "btn-danger" });
// Modal for performing bulk actions on topics