Skip to content

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

DEV: Remove duplicated code

Jarek Radosz25524a213dfb
diff --git a/app/assets/javascripts/discourse/app/controllers/tag-show.js b/app/assets/javascripts/discourse/app/controllers/tag-show.js
index 86d8258da91..5d19259d6b0 100644
--- a/app/assets/javascripts/discourse/app/controllers/tag-show.js
+++ b/app/assets/javascripts/discourse/app/controllers/tag-show.js
@@ -28,8 +28,6 @@ export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
q: null,
showInfo: false,
- categories: alias("site.categoriesList"),
-
@discourseComputed("list", "list.draft")
createTopicLabel(list, listDraft) {
return listDraft ? "topic.open_draft" : "topic.create";
@@ -73,11 +71,6 @@ export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
return this.siteSettings.show_filter_by_tag;
},
- @discourseComputed("additionalTags", "category", "tag.id")
- showToggleInfo(additionalTags, category, tagId) {
- return !additionalTags && !category && tagId !== "none";
- },
-
loadMoreTopics() {
return this.list.loadMore();
},
diff --git a/app/assets/javascripts/discourse/app/templates/tags/show.hbs b/app/assets/javascripts/discourse/app/templates/tags/show.hbs
index df6a757526c..a064771eb2b 100644
--- a/app/assets/javascripts/discourse/app/templates/tags/show.hbs
+++ b/app/assets/javascripts/discourse/app/templates/tags/show.hbs
@@ -21,11 +21,9 @@
canCreateTopic=canCreateTopic
hasDraft=draft
createTopic=(route-action "createTopic")
- categories=categories
category=category
tag=tag
noSubcategories=noSubcategories
- showToggleInfo=showToggleInfo
tagNotification=tagNotification
additionalTags=additionalTags
showInfo=showInfo