DEV: Remove duplicated code
Fixes "overwriting computed property" warnings
This commit is contained in:
parent
883da89c70
commit
25524a213d
|
@ -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();
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue