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

17 lines
431 B
Plaintext
Raw Normal View History

import Rule from 'discourse/plugins/discourse-chat/admin/models/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 });
},
}
});