mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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: {
|
actions: {
|
||||||
toggleExtendedProfile() {
|
collapseProfile() {
|
||||||
this.toggleProperty('forceExpand');
|
this.set('forceExpand', false);
|
||||||
|
},
|
||||||
|
|
||||||
|
expandProfile() {
|
||||||
|
this.set('forceExpand', true);
|
||||||
},
|
},
|
||||||
|
|
||||||
showSuspensions() {
|
showSuspensions() {
|
||||||
|
@ -69,13 +69,15 @@
|
|||||||
|
|
||||||
{{#if viewingSelf}}
|
{{#if viewingSelf}}
|
||||||
<li>
|
<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'}}
|
{{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'}}
|
{{d-icon "angle-double-up"}} {{i18n 'user.collapse_profile'}}
|
||||||
{{/if}}
|
</a>
|
||||||
</a>
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user