refs #6085 aclMail back #1869

Merged
carlossa merged 16 commits from 6085-ACLsMail into dev 2024-01-03 07:56:11 +00:00
5 changed files with 34 additions and 7 deletions
Showing only changes of commit e548ef4dae - Show all commits

View File

@ -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
});

View File

@ -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
});

View File

@ -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')
});

View File

@ -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
});

View File

@ -7,3 +7,4 @@ import './descriptor';
import './create';
import './basic-data';
import './users';
import './acl';