26 lines
611 B
JavaScript
26 lines
611 B
JavaScript
|
import ngModule from '../../module';
|
||
|
import Section from 'salix/components/section';
|
||
|
import './style.scss';
|
||
|
|
||
|
export default class Controller extends Section {
|
||
|
constructor($element, $) {
|
||
|
super($element, $);
|
||
|
this.filter = {
|
||
|
order: 'created DESC',
|
||
|
};
|
||
|
this.include = {
|
||
|
relation: 'worker',
|
||
|
scope: {
|
||
|
fields: ['id', 'firstName', 'lastName']
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$element', '$scope'];
|
||
|
|
||
|
ngModule.vnComponent('vnClaimNote', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller,
|
||
|
});
|