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:
parent
f8e9190617
commit
ba73d91e3b
|
@ -36,8 +36,10 @@ addBulkButton("relistTopics", "relist_topics", {
|
|||
icon: "eye",
|
||||
buttonVisible: topics => topics.some(t => !t.visible)
|
||||
});
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue