2017-06-28 10:12:37 -04:00
|
|
|
import FilterRule from 'discourse/plugins/discourse-chat/admin/models/filter-rule'
|
|
|
|
import { ajax } from 'discourse/lib/ajax';
|
|
|
|
import computed from "ember-addons/ember-computed-decorators";
|
2017-06-28 13:04:21 -04:00
|
|
|
import showModal from 'discourse/lib/show-modal';
|
|
|
|
|
2017-06-28 10:12:37 -04:00
|
|
|
|
|
|
|
export default Ember.Controller.extend({
|
|
|
|
|
2017-06-28 13:04:21 -04:00
|
|
|
|
|
|
|
actions:{
|
|
|
|
edit(rule){
|
|
|
|
console.log(rule.hasDirtyAttributes);
|
|
|
|
showModal('admin-plugins-chat-edit-rule', { model: rule, admin: true });
|
|
|
|
},
|
|
|
|
}
|
2017-06-28 10:12:37 -04:00
|
|
|
|
|
|
|
});
|