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"; return (this.get('isExpanded')) ? "fa-caret-down" : "fa-caret-right";
}.property('isExpanded'), }.property('isExpanded'),
@computed('isExpanded')
isCollapsed(isExpanded){
return !isExpanded;
},
actions: { actions: {
expandOptions() { expandOptions() {
this.set('isExpanded', !this.get('isExpanded')); this.set('isExpanded', !this.get('isExpanded'));

View File

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