27 lines
591 B
JavaScript
27 lines
591 B
JavaScript
import ngModule from '../../module';
|
|
import Component from 'core/lib/component';
|
|
|
|
class Controller extends Component {
|
|
set department(value) {
|
|
this._department = value;
|
|
this.$.summary = null;
|
|
if (!value) return;
|
|
this.$.summary = this.department;
|
|
}
|
|
get department() {
|
|
return this._department;
|
|
}
|
|
|
|
get isHr() {
|
|
return this.aclService.hasAny(['hr']);
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnWorkerDepartmentSummary', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
department: '<'
|
|
}
|
|
});
|