FIX: more conservative refactoring to avoid regressions in customisations

This commit is contained in:
Joffrey JAFFEUX 2018-04-03 10:35:22 +02:00 committed by GitHub
parent f1ef46d7b7
commit 61812b52e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

View File

@ -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() {

View File

@ -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>