Store errors per-channel rather than per-rule, and update UI to match

This commit is contained in:
David Taylor
2017-07-18 23:08:06 +01:00
parent d1d333523f
commit c5fdebd1bc
11 changed files with 42 additions and 45 deletions
@@ -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));
},
}