mirror of https://github.com/rancher/ui.git
25 lines
651 B
JavaScript
25 lines
651 B
JavaScript
import { alias } from '@ember/object/computed';
|
|
import { inject as service } from '@ember/service';
|
|
import Controller from '@ember/controller';
|
|
|
|
export default Controller.extend({
|
|
modalService: service('modal'),
|
|
globalStore: service(),
|
|
scope: service(),
|
|
|
|
queryParams: ['type'],
|
|
currentType: 'slack',
|
|
|
|
notifiers: alias('model.notifiers'),
|
|
actions: {
|
|
showNewEditModal() {
|
|
this.modalService.toggleModal('notifier/modal-new-edit', {
|
|
closeWithOutsideClick: false,
|
|
controller: this,
|
|
currentType: this.currentType,
|
|
mode: 'add',
|
|
});
|
|
},
|
|
},
|
|
});
|