FIX: more conservative refactoring to avoid regressions in customisations
This commit is contained in:
parent
f1ef46d7b7
commit
61812b52e7
|
@ -91,8 +91,12 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
},
|
||||
|
||||
actions: {
|
||||
toggleExtendedProfile() {
|
||||
this.toggleProperty('forceExpand');
|
||||
collapseProfile() {
|
||||
this.set('forceExpand', false);
|
||||
},
|
||||
|
||||
expandProfile() {
|
||||
this.set('forceExpand', true);
|
||||
},
|
||||
|
||||
showSuspensions() {
|
||||
|
|
|
@ -69,13 +69,15 @@
|
|||
|
||||
{{#if viewingSelf}}
|
||||
<li>
|
||||
<a {{action "toggleExtendedProfile"}} href class="btn">
|
||||
{{#if collapsedInfo}}
|
||||
{{#if collapsedInfo}}
|
||||
<a {{action "expandProfile"}} href class="btn">
|
||||
{{d-icon "angle-double-down"}} {{i18n 'user.expand_profile'}}
|
||||
{{else}}
|
||||
</a>
|
||||
{{else}}
|
||||
<a {{action "collapseProfile"}} href class="btn">
|
||||
{{d-icon "angle-double-up"}} {{i18n 'user.collapse_profile'}}
|
||||
{{/if}}
|
||||
</a>
|
||||
</a>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue