discourse-chat-integration/assets/javascripts/admin/controllers/admin-plugins-chat-provider...

17 lines
444 B
Plaintext
Raw Normal View History

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";
import showModal from 'discourse/lib/show-modal';
export default Ember.Controller.extend({
actions:{
edit(rule){
console.log(rule.hasDirtyAttributes);
showModal('admin-plugins-chat-edit-rule', { model: rule, admin: true });
},
}
});