From c1113db965b430d5eb54028b797ff81c3085e2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Thu, 22 Aug 2024 11:33:28 +0200 Subject: [PATCH] refactor(City detail): add map display option (#773) --- src/constants.js | 6 ++++- src/i18n/locales/en.json | 2 ++ src/views/CountryCityDetail.vue | 48 ++++++++++++++++++++++++++------- 3 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/constants.js b/src/constants.js index 760e8cf1ca3..cdb2e7b030d 100644 --- a/src/constants.js +++ b/src/constants.js @@ -67,7 +67,11 @@ export default { ], DISPLAY_PARAM: 'display', PRICE_DISPLAY_LIST: [ - { key: 'list', value: 'DisplayPriceList', icon: 'mdi-format-list-bulleted' }, + { key: 'list', value: 'DisplayList', icon: 'mdi-format-list-bulleted' }, + { key: 'map', value: 'DisplayPriceMap', icon: 'mdi-map-marker' }, + ], + LOCATION_DISPLAY_LIST: [ + { key: 'list', value: 'DisplayList', icon: 'mdi-format-list-bulleted' }, { key: 'map', value: 'DisplayPriceMap', icon: 'mdi-map-marker' }, ], DATE_FULL_REGEX_MATCH: /(\d{4})-(\d{2})-(\d{2})/, diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 5f62cf4af14..f8ef2633822 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -121,7 +121,9 @@ "Currency": "Currency", "CurrencyMissing": "Currency missing", "Display": "Display", + "DisplayList": "List", "DisplayPriceList": "List", + "DisplayMap": "Map", "DisplayPriceMap": "Map", "Language": "Languages", "LatestPrices": "Latest prices", diff --git a/src/views/CountryCityDetail.vue b/src/views/CountryCityDetail.vue index 46834af075c..6e637171340 100644 --- a/src/views/CountryCityDetail.vue +++ b/src/views/CountryCityDetail.vue @@ -12,14 +12,26 @@ + - - - - - + + + + + + + + + + + + + + + + @@ -32,18 +44,22 @@