From 8f436bf7369975fc0a7c04b26b1bfa2704e4a58f Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 23 Mar 2017 12:42:37 -0400 Subject: [PATCH] replace gets with arguments --- .../discourse/components/categories-boxes-topic.js.es6 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/components/categories-boxes-topic.js.es6 b/app/assets/javascripts/discourse/components/categories-boxes-topic.js.es6 index 7a23f3e1409..e6e22e99395 100644 --- a/app/assets/javascripts/discourse/components/categories-boxes-topic.js.es6 +++ b/app/assets/javascripts/discourse/components/categories-boxes-topic.js.es6 @@ -5,10 +5,10 @@ export default Ember.Component.extend({ classNameBindings: ['topicStatusIcon'], @computed('topic.pinned', 'topic.closed', 'topic.archived') - topicStatusIcon() { - if(this.get('topic.pinned')) { return 'topic-pinned'; } - if(this.get('topic.closed')) { return 'topic-closed'; } - if(this.get('topic.archived')) { return 'topic-archived'; } + topicStatusIcon(pinned, closed, archived) { + if(pinned) { return 'topic-pinned'; } + if(closed) { return 'topic-closed'; } + if(archived) { return 'topic-archived'; } return 'topic-open'; } });