27 lines
664 B
JavaScript
27 lines
664 B
JavaScript
import ngModule from '../../module';
|
|
import SearchPanel from 'core/components/searchbar/search-panel';
|
|
|
|
export default class Controller extends SearchPanel {
|
|
constructor(...args) {
|
|
super(...args);
|
|
this.accessTypes = [
|
|
{name: '*'},
|
|
{name: 'READ'},
|
|
{name: 'WRITE'}
|
|
];
|
|
this.permissions = [
|
|
{name: 'ALLOW'},
|
|
{name: 'DENY'}
|
|
];
|
|
|
|
this.models = [];
|
|
for (let model in window.validations)
|
|
this.models.push({name: model});
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnAclSearchPanel', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|