2018-04-26 14:41:08 +00:00
|
|
|
import ngModule from '../module';
|
2020-04-25 09:50:04 +00:00
|
|
|
import DescriptorPopover from 'salix/components/descriptor-popover';
|
2018-04-26 14:41:08 +00:00
|
|
|
|
2020-04-25 09:50:04 +00:00
|
|
|
class Controller extends DescriptorPopover {
|
2020-04-30 10:48:52 +00:00
|
|
|
get diaryParams() {
|
|
|
|
return {
|
|
|
|
id: this.descriptor && this.descriptor.id,
|
|
|
|
warehouseFk: this.warehouseFk,
|
|
|
|
ticketFk: this.ticketFk
|
2019-05-07 09:32:35 +00:00
|
|
|
};
|
2018-10-18 09:41:25 +00:00
|
|
|
}
|
2018-04-26 14:41:08 +00:00
|
|
|
}
|
|
|
|
|
2020-04-25 09:50:04 +00:00
|
|
|
ngModule.vnComponent('vnItemDescriptorPopover', {
|
|
|
|
slotTemplate: require('./index.html'),
|
2020-04-30 10:48:52 +00:00
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
warehouseFk: '<?',
|
|
|
|
ticketFk: '<?'
|
|
|
|
}
|
2018-04-26 14:41:08 +00:00
|
|
|
});
|