mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-11-24 01:21:05 +00:00
15 lines
354 B
Plaintext
15 lines
354 B
Plaintext
|
|
import FilterRule from 'discourse/plugins/discourse-chat/admin/models/filter-rule'
|
||
|
|
import { ajax } from 'discourse/lib/ajax';
|
||
|
|
|
||
|
|
export default Ember.Controller.extend({
|
||
|
|
|
||
|
|
model: FilterRule.create({}),
|
||
|
|
|
||
|
|
actions: {
|
||
|
|
cancel: function(){
|
||
|
|
this.set('model', null);
|
||
|
|
this.set('workingCopy', null);
|
||
|
|
this.send('closeModal');
|
||
|
|
},
|
||
|
|
}
|
||
|
|
});
|