Skip to content

A platform for community discussion. Free, open, simple.

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

Dan Ungureanuba73d91e3bad
diff --git a/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6 b/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6
index 11e5a3fe74c..651c9a2e742 100644
--- a/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6
+++ b/app/assets/javascripts/discourse/controllers/topic-bulk-actions.js.es6
@@ -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