mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: allow saving profile preferences when name field is blank
This commit is contained in:
parent
1f17871b0c
commit
e2d8f04ec0
@ -22,10 +22,9 @@ export default Discourse.ObjectController.extend({
|
||||
|
||||
saveDisabled: function() {
|
||||
if (this.get('saving')) return true;
|
||||
if (Discourse.SiteSettings.enable_names && this.blank('newNameInput')) return true;
|
||||
if (this.blank('email')) return true;
|
||||
return false;
|
||||
}.property('saving', 'newNameInput', 'email'),
|
||||
}.property('saving', 'email'),
|
||||
|
||||
cannotDeleteAccount: Em.computed.not('can_delete_account'),
|
||||
deleteDisabled: Em.computed.or('saving', 'deleting', 'cannotDeleteAccount'),
|
||||
|
Loading…
Reference in New Issue
Block a user