22 lines
541 B
JavaScript
22 lines
541 B
JavaScript
import ngModule from '../module';
|
|
import DescriptorPopover from 'salix/components/descriptor-popover';
|
|
|
|
class Controller extends DescriptorPopover {
|
|
get diaryParams() {
|
|
return {
|
|
id: this.descriptor && this.descriptor.id,
|
|
warehouseFk: this.warehouseFk,
|
|
ticketFk: this.ticketFk
|
|
};
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnItemDescriptorPopover', {
|
|
slotTemplate: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
warehouseFk: '<?',
|
|
ticketFk: '<?'
|
|
}
|
|
});
|