| 1 | import { patch } from '@web/core/utils/patch'; |
| 2 | import { WebsiteSale } from '@website_sale/interactions/website_sale'; |
| 3 | |
| 4 | patch(WebsiteSale.prototype, { |
| 5 | /** |
| 6 | * Trigger a state update of the ClickAndCollectAvailability component when the combination info |
| 7 | * is updated. |
| 8 | * |
| 9 | * @override |
| 10 | */ |
| 11 | _onChangeCombination(ev, parent, combination) { |
| 12 | super._onChangeCombination(...arguments); |
| 13 | this.env.bus.trigger('updateCombinationInfo', combination); |
| 14 | }, |
| 15 | }); |