Remove unnecessary computed property.
This commit is contained in:
parent
994a03b3e3
commit
91a296839f
|
@ -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'));
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue