refs #5334 left-menu
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2023-05-26 12:21:15 +02:00
parent 027d45bc25
commit 2b06c62876
4 changed files with 7 additions and 10 deletions

View File

@ -45,6 +45,9 @@ export default class LeftMenu {
if (acl && !this.aclService.hasAny(acl))
continue;
}
console.log('MyItem:', item);
console.log('MyState:', state);
console.log(item.description, state.description);
let myItem = {
icon: item.icon,
description: item.description || state.description,

View File

@ -15,13 +15,10 @@ class Controller extends Section {
}
}
ngModule.vnComponent('vnWorkerBasicData', {
ngModule.vnComponent('vnWorkerDepartmentBasicData', {
template: require('./index.html'),
controller: Controller,
bindings: {
worker: '<'
},
require: {
card: '^vnWorkerCard'
}
});

View File

@ -12,9 +12,6 @@
model="model">
</vn-searchbar>
</vn-portal>
<vn-portal slot="menu">
<vn-left-menu></vn-left-menu>
</vn-portal>
<ui-view>
<vn-worker-department-index></vn-worker-department-index>
</ui-view>

View File

@ -122,8 +122,8 @@
}, {
"url": "/department?q",
"state": "worker.department",
"description":"Departments",
"component": "vn-worker-department"
"component": "vn-worker-department",
"description":"Departments"
}, {
"url": "/:id",
"state": "worker.department.card",