refs #6085 searchpanel and change path
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
0186c2c806
commit
e548ef4dae
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
|
@ -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')
|
||||||
});
|
});
|
||||||
|
|
|
@ -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 './create';
|
||||||
import './basic-data';
|
import './basic-data';
|
||||||
import './users';
|
import './users';
|
||||||
|
import './acl';
|
||||||
|
|
Loading…
Reference in New Issue