Extensibility points for user/preferences

This commit is contained in:
Robin Ward 2018-01-02 15:46:32 -05:00
parent 4cfea21aa2
commit bf7e0188e5
2 changed files with 7 additions and 4 deletions

View File

@ -10,6 +10,7 @@ export default Ember.Controller.extend(CanCheckEmails, PreferencesTabController,
saveAttrNames: ['name'], saveAttrNames: ['name'],
canEditName: setting('enable_names'), canEditName: setting('enable_names'),
canSaveUser: true,
newNameInput: null, newNameInput: null,

View File

@ -95,11 +95,13 @@
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}} {{plugin-outlet name="user-custom-controls" args=(hash model=model)}}
<div class="control-group save-button"> {{#if canSaveUser}}
<div class="controls"> <div class="control-group save-button">
{{partial 'user/preferences/save-button'}} <div class="controls">
{{partial 'user/preferences/save-button'}}
</div>
</div> </div>
</div> {{/if}}
{{#if model.canDeleteAccount}} {{#if model.canDeleteAccount}}