import ngModule from '../../module'; import Section from 'salix/components/section'; export default class Controller extends Section { onDelete(row) { return this.$http.delete(`ACLs/${row.id}`) .then(() => this.$.model.refresh()) .then(() => this.vnApp.showSuccess(this.$t('ACL removed'))); } } ngModule.component('vnAclIndex', { template: require('./index.html'), controller: Controller });