refs #6085 aclMail back #1869
|
@ -1,4 +1,4 @@
|
|||
import ngModule from '../../module';
|
||||
import ngModule from '../../../module';
|
||||
import Section from 'salix/components/section';
|
||||
|
||||
export default class Controller extends Section {
|
||||
|
@ -28,6 +28,6 @@ export default class Controller extends Section {
|
|||
}
|
||||
|
||||
ngModule.component('vnAclMailCreate', {
|
||||
template: require('./index.html'),
|
||||
// template: require('./index.html'),
|
||||
controller: Controller
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import ngModule from '../../module';
|
||||
import ngModule from '../../../module';
|
||||
import Section from 'salix/components/section';
|
||||
|
||||
export default class Controller extends Section {
|
||||
|
@ -10,6 +10,6 @@ export default class Controller extends Section {
|
|||
}
|
||||
|
||||
ngModule.component('vnAclMailIndex', {
|
||||
template: require('./index.html'),
|
||||
// template: require('./index.html'),
|
||||
controller: Controller
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import ngModule from '../../module';
|
||||
import ngModule from '../../../module';
|
||||
import ModuleMain from 'salix/components/module-main';
|
||||
|
||||
export default class ACL extends ModuleMain {
|
||||
|
@ -13,6 +13,6 @@ export default class ACL extends ModuleMain {
|
|||
}
|
||||
|
||||
ngModule.vnComponent('vnAclMailComponent', {
|
||||
controller: ACL,
|
||||
template: require('./index.html')
|
||||
controller: ACL
|
||||
// template: require('./index.html')
|
||||
});
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
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
|
||||
});
|
|
@ -7,3 +7,4 @@ import './descriptor';
|
|||
import './create';
|
||||
import './basic-data';
|
||||
import './users';
|
||||
import './acl';
|
||||
|
|
Loading…
Reference in New Issue