FIX: allow saving profile preferences when name field is blank

This commit is contained in:
Neil Lalonde 2014-06-16 11:23:05 -04:00
parent 1f17871b0c
commit e2d8f04ec0

View File

@ -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'),