discourse-chat-integration/assets/javascripts/admin/controllers/modals/admin-plugins-chat-edit-rul...

15 lines
335 B
JavaScript

import Rule from 'discourse/plugins/discourse-chat/admin/models/rule'
import { ajax } from 'discourse/lib/ajax';
export default Ember.Controller.extend({
model: Rule.create({}),
actions: {
cancel: function(){
this.set('model', null);
this.set('workingCopy', null);
this.send('closeModal');
},
}
});