2017-06-28 22:32:02 +01:00
|
|
|
import Rule from 'discourse/plugins/discourse-chat/admin/models/rule'
|
2017-06-28 18:04:21 +01:00
|
|
|
import { ajax } from 'discourse/lib/ajax';
|
|
|
|
|
|
|
|
|
|
export default Ember.Controller.extend({
|
|
|
|
|
|
2017-06-28 22:32:02 +01:00
|
|
|
model: Rule.create({}),
|
2017-06-28 18:04:21 +01:00
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
|
cancel: function(){
|
|
|
|
|
this.set('model', null);
|
|
|
|
|
this.set('workingCopy', null);
|
|
|
|
|
this.send('closeModal');
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
});
|