From 8dfe038cfd8cee29bc779b249220637d479437cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Sun, 23 Jun 2024 01:10:13 +0200 Subject: [PATCH] refactor(price add): new LocationInputRow component (#647) --- src/components/LocationInputRow.vue | 94 +++++++++++++++++++++++++++++ src/views/AddPriceMultiple.vue | 61 ++----------------- src/views/AddPriceSingle.vue | 55 +---------------- 3 files changed, 101 insertions(+), 109 deletions(-) create mode 100644 src/components/LocationInputRow.vue diff --git a/src/components/LocationInputRow.vue b/src/components/LocationInputRow.vue new file mode 100644 index 0000000000..2e9a2a1a95 --- /dev/null +++ b/src/components/LocationInputRow.vue @@ -0,0 +1,94 @@ + + + diff --git a/src/views/AddPriceMultiple.vue b/src/views/AddPriceMultiple.vue index ea4232fc78..f69b718954 100644 --- a/src/views/AddPriceMultiple.vue +++ b/src/views/AddPriceMultiple.vue @@ -4,7 +4,7 @@ - + - + -

- {{ $t('AddPriceSingle.WhereWhen.Location') }} -

- - - {{ getLocationTitle(location, true, true, true) }} - -
- - {{ $t('AddPriceSingle.WhereWhen.Find') }} - -

- {{ $t('AddPriceSingle.WhereWhen.SelectLocation') }} -

+
@@ -172,13 +153,6 @@ > {{ $t('AddPriceMultiple.ProductPriceDetails.PriceUploaded') }} - -