Remove unnecessary computed property.

This commit is contained in:
Guo Xiang Tan 2016-10-13 12:08:00 +08:00
parent 994a03b3e3
commit 91a296839f
2 changed files with 4 additions and 9 deletions

View File

@ -388,11 +388,6 @@ export default Em.Component.extend({
return (this.get('isExpanded')) ? "fa-caret-down" : "fa-caret-right";
}.property('isExpanded'),
@computed('isExpanded')
isCollapsed(isExpanded){
return !isExpanded;
},
actions: {
expandOptions() {
this.set('isExpanded', !this.get('isExpanded'));

View File

@ -1,7 +1,7 @@
<h3 class="panel-title" {{action "expandOptions"}}>
<i class="fa {{collapsedClassName}}"></i> {{i18n "search.advanced.title"}}
</h3>
{{#unless isCollapsed}}
{{#if isExpanded}}
<div class="search-options">
<div class="container">
<div class="control-group pull-left">
@ -77,4 +77,4 @@
</div>
</div>
</div>
{{/unless}}
{{/if}}