mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
FEATURE: Admin interface for editing email templates
This commit is contained in:
@ -2,9 +2,7 @@ export default Ember.Controller.extend({
|
||||
saved: false,
|
||||
|
||||
saveDisabled: function() {
|
||||
if (this.get('model.isSaving')) { return true; }
|
||||
if ((!this.get('allow_blank')) && Ember.isEmpty(this.get('model.value'))) { return true; }
|
||||
return false;
|
||||
return ((!this.get('allow_blank')) && Ember.isEmpty(this.get('model.value')));
|
||||
}.property('model.iSaving', 'model.value'),
|
||||
|
||||
actions: {
|
||||
|
Reference in New Issue
Block a user