24 lines
516 B
JavaScript
24 lines
516 B
JavaScript
import ngModule from '../module';
|
|
import DescriptorPopover from 'salix/components/descriptor-popover';
|
|
|
|
class Controller extends DescriptorPopover {
|
|
show(parent, id, lineFk) {
|
|
super.show(parent, id);
|
|
this.lineFk = lineFk;
|
|
}
|
|
|
|
hide() {
|
|
super.hide();
|
|
this.lineFk = null;
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnItemDescriptorPopover', {
|
|
slotTemplate: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
warehouseFk: '<?',
|
|
lineFk: '<?'
|
|
}
|
|
});
|