Extensibility points for user/preferences
This commit is contained in:
parent
4cfea21aa2
commit
bf7e0188e5
|
@ -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,
|
||||||
|
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue