refs #6085 searchpanel and change path
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-11-29 07:51:58 +01:00
parent 0186c2c806
commit e548ef4dae
5 changed files with 34 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import ngModule from '../../module'; import ngModule from '../../../module';
import Section from 'salix/components/section'; import Section from 'salix/components/section';
export default class Controller extends Section { export default class Controller extends Section {
@ -28,6 +28,6 @@ export default class Controller extends Section {
} }
ngModule.component('vnAclMailCreate', { ngModule.component('vnAclMailCreate', {
template: require('./index.html'), // template: require('./index.html'),
controller: Controller controller: Controller
}); });

View File

@ -1,4 +1,4 @@
import ngModule from '../../module'; import ngModule from '../../../module';
import Section from 'salix/components/section'; import Section from 'salix/components/section';
export default class Controller extends Section { export default class Controller extends Section {
@ -10,6 +10,6 @@ export default class Controller extends Section {
} }
ngModule.component('vnAclMailIndex', { ngModule.component('vnAclMailIndex', {
template: require('./index.html'), // template: require('./index.html'),
controller: Controller controller: Controller
}); });

View File

@ -1,4 +1,4 @@
import ngModule from '../../module'; import ngModule from '../../../module';
import ModuleMain from 'salix/components/module-main'; import ModuleMain from 'salix/components/module-main';
export default class ACL extends ModuleMain { export default class ACL extends ModuleMain {
@ -13,6 +13,6 @@ export default class ACL extends ModuleMain {
} }
ngModule.vnComponent('vnAclMailComponent', { ngModule.vnComponent('vnAclMailComponent', {
controller: ACL, controller: ACL
template: require('./index.html') // 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 './create';
import './basic-data'; import './basic-data';
import './users'; import './users';
import './acl';