diff --git a/modules/worker/front/department/descriptor-popover/index.html b/modules/worker/front/department/descriptor-popover/index.html new file mode 100644 index 000000000..da305b1a2 --- /dev/null +++ b/modules/worker/front/department/descriptor-popover/index.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/modules/worker/front/department/descriptor-popover/index.js b/modules/worker/front/department/descriptor-popover/index.js new file mode 100644 index 000000000..d4126892f --- /dev/null +++ b/modules/worker/front/department/descriptor-popover/index.js @@ -0,0 +1,9 @@ +import ngModule from '../module'; +import DescriptorPopover from 'salix/components/descriptor-popover'; + +class Controller extends DescriptorPopover {} + +ngModule.vnComponent('vnWorkerDepartmentDescriptorPopover', { + slotTemplate: require('./index.html'), + controller: Controller +}); diff --git a/modules/worker/front/summary/index.html b/modules/worker/front/summary/index.html index 72b8e729a..ec30c15a7 100644 --- a/modules/worker/front/summary/index.html +++ b/modules/worker/front/summary/index.html @@ -27,8 +27,12 @@ - + + + {{::worker.department.department.name}} + @@ -71,3 +75,6 @@ + + diff --git a/modules/worker/front/summary/index.js b/modules/worker/front/summary/index.js index c2ad107d5..0c3c0c91d 100644 --- a/modules/worker/front/summary/index.js +++ b/modules/worker/front/summary/index.js @@ -48,7 +48,8 @@ class Controller extends Summary { relation: 'department', scope: { include: { - relation: 'department' + relation: 'department', + scope: {fields: ['id', 'code', 'name']} } } }