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,
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();
},

View File

@ -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