From 3d2de99129a770b30229e04049edaed32600cbed Mon Sep 17 00:00:00 2001 From: carlosjr Date: Tue, 3 Aug 2021 11:16:43 +0200 Subject: [PATCH] vn-popover containing non-descriptor components now relocates correctly for ticket.sale --- modules/ticket/front/sale/index.js | 8 +++++++- modules/ticket/front/sale/index.spec.js | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index 46cbe43c9..7e7654038 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -47,7 +47,13 @@ class Controller extends Section { getMana() { this.$http.get(`Tickets/${this.$params.id}/getSalesPersonMana`) - .then(res => this.edit.mana = res.data); + .then(res => { + this.edit.mana = res.data; + this.$.$applyAsync(() => { + this.$.editDiscount.relocate(); + this.$.editPricePopover.relocate(); + }); + }); } /** diff --git a/modules/ticket/front/sale/index.spec.js b/modules/ticket/front/sale/index.spec.js index e5368468a..169b41c5f 100644 --- a/modules/ticket/front/sale/index.spec.js +++ b/modules/ticket/front/sale/index.spec.js @@ -42,6 +42,8 @@ describe('Ticket', () => { $scope.sms = {open: () => {}}; $scope.ticket = ticket; $scope.model = crudModel; + $scope.editDiscount = {relocate: () => {}}; + $scope.editPricePopover = {relocate: () => {}}; $httpBackend = _$httpBackend_; Object.defineProperties($state.params, { id: { -- 2.40.1