mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
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
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue