Store errors per-channel rather than per-rule, and update UI to match
This commit is contained in:
@@ -28,9 +28,11 @@ export default Ember.Component.extend({
|
||||
createRule(channel){
|
||||
var newRule = this.get('store').createRecord('rule',{channel_id: channel.id});
|
||||
channel.rules.pushObject(newRule)
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
showError(error_key){
|
||||
bootbox.alert(I18n.t(error_key));
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
@@ -34,11 +34,6 @@ export default Ember.Controller.extend({
|
||||
var model = {channel:channel}
|
||||
showModal('admin-plugins-chat-test', { model: model, admin: true });
|
||||
},
|
||||
showError(error_key){
|
||||
bootbox.alert(I18n.t(error_key));
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user