mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 13:23:44 +08:00
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";
|
||||
}.property('isExpanded'),
|
||||
|
||||
@computed('isExpanded')
|
||||
isCollapsed(isExpanded){
|
||||
return !isExpanded;
|
||||
},
|
||||
|
||||
actions: {
|
||||
expandOptions() {
|
||||
this.set('isExpanded', !this.get('isExpanded'));
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user