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">
@ -18,7 +18,7 @@
</div>
</div>
<!-- disable these super-advanced searches for now
<!-- disable these super-advanced searches for now
<div class="container">
<div class="control-group pull-left">
<label class="control-label" for="search-in-group">{{i18n "search.advanced.in_group.label"}}</label>
@ -33,7 +33,7 @@
</div>
</div>
</div>
-->
-->
{{#if siteSettings.tagging_enabled}}
<div class="container">
@ -77,4 +77,4 @@
</div>
</div>
</div>
{{/unless}}
{{/if}}