DEV: Remove duplicated code

Fixes "overwriting computed property" warnings
This commit is contained in:
Jarek Radosz 2020-11-11 11:19:45 +01:00 committed by Robin Ward
parent 883da89c70
commit 25524a213d
2 changed files with 0 additions and 9 deletions

View File

@ -28,8 +28,6 @@ export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
q: null, q: null,
showInfo: false, showInfo: false,
categories: alias("site.categoriesList"),
@discourseComputed("list", "list.draft") @discourseComputed("list", "list.draft")
createTopicLabel(list, listDraft) { createTopicLabel(list, listDraft) {
return listDraft ? "topic.open_draft" : "topic.create"; return listDraft ? "topic.open_draft" : "topic.create";
@ -73,11 +71,6 @@ export default Controller.extend(BulkTopicSelection, FilterModeMixin, {
return this.siteSettings.show_filter_by_tag; return this.siteSettings.show_filter_by_tag;
}, },
@discourseComputed("additionalTags", "category", "tag.id")
showToggleInfo(additionalTags, category, tagId) {
return !additionalTags && !category && tagId !== "none";
},
loadMoreTopics() { loadMoreTopics() {
return this.list.loadMore(); return this.list.loadMore();
}, },

View File

@ -21,11 +21,9 @@
canCreateTopic=canCreateTopic canCreateTopic=canCreateTopic
hasDraft=draft hasDraft=draft
createTopic=(route-action "createTopic") createTopic=(route-action "createTopic")
categories=categories
category=category category=category
tag=tag tag=tag
noSubcategories=noSubcategories noSubcategories=noSubcategories
showToggleInfo=showToggleInfo
tagNotification=tagNotification tagNotification=tagNotification
additionalTags=additionalTags additionalTags=additionalTags
showInfo=showInfo showInfo=showInfo