From 0219fbbd3cecef40332b7d6e6f76f0e9650a48dc Mon Sep 17 00:00:00 2001 From: Thomas Nabord Date: Tue, 2 Jan 2024 16:10:16 +0100 Subject: [PATCH 1/4] Remove Vue.extend --- .../delivery-time-and-rates/delivery-time-and-rates.vue | 4 ++-- .../estimate-method/countries-form-list.vue | 4 ++-- .../estimate-method/custom-carrier-form.vue | 4 ++-- .../delivery-time-and-rates/estimate-method/custom-rate.vue | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_dev/apps/ui/src/components/product-feed/settings/delivery-time-and-rates/delivery-time-and-rates.vue b/_dev/apps/ui/src/components/product-feed/settings/delivery-time-and-rates/delivery-time-and-rates.vue index a45aca1575..9aa603e48c 100644 --- a/_dev/apps/ui/src/components/product-feed/settings/delivery-time-and-rates/delivery-time-and-rates.vue +++ b/_dev/apps/ui/src/components/product-feed/settings/delivery-time-and-rates/delivery-time-and-rates.vue @@ -42,7 +42,7 @@ diff --git a/_dev/apps/ui/src/components/commons/result-number-selector.vue b/_dev/apps/ui/src/components/commons/result-number-selector.vue index 1ae40f0e97..7e1e50bf87 100644 --- a/_dev/apps/ui/src/components/commons/result-number-selector.vue +++ b/_dev/apps/ui/src/components/commons/result-number-selector.vue @@ -32,7 +32,7 @@ export default { methods: { onChangeLimit(limitChosen) { this.selectedFilterQuantityToShow = limitChosen; - this.$root.$emit('changeLimit', Number(limitChosen)); + this.$emit('changeLimit', Number(limitChosen)); }, }, diff --git a/_dev/apps/ui/src/components/commons/table-page-controls.vue b/_dev/apps/ui/src/components/commons/table-page-controls.vue index ba50a9085f..8d59c2022c 100644 --- a/_dev/apps/ui/src/components/commons/table-page-controls.vue +++ b/_dev/apps/ui/src/components/commons/table-page-controls.vue @@ -14,6 +14,7 @@ > - + - diff --git a/_dev/apps/ui/src/components/product-feed-page/non-compliant-products-details-page/non-compliant-products-details-page.vue b/_dev/apps/ui/src/components/product-feed-page/non-compliant-products-details-page/non-compliant-products-details-page.vue index 5d52fd170b..42c09e45ed 100644 --- a/_dev/apps/ui/src/components/product-feed-page/non-compliant-products-details-page/non-compliant-products-details-page.vue +++ b/_dev/apps/ui/src/components/product-feed-page/non-compliant-products-details-page/non-compliant-products-details-page.vue @@ -120,6 +120,8 @@ :total-pages="totalPages" :active-page="activePage+1" :selected-filter-quantity-to-show="pageSize" + @changeLimit="pageChanged" + @changePage="limitChanged" /> @@ -212,12 +214,6 @@ export default defineComponent({ }, mounted() { this.getIssues(); - this.$root.$on('changePage', this.pageChanged); - this.$root.$on('changeLimit', this.limitChanged); - }, - beforeDestroy() { - this.$root.$off('changePage', this.pageChanged); - this.$root.$off('changeLimit', this.limitChanged); }, });