From 6f609db70693acad9c1c3929021e3bd618d5ea32 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Jun 2023 07:50:00 +0530 Subject: [PATCH] Change the trending country selection process and a little bit of refactoring --- src/App.vue | 44 ++++++++++++++++++++++++-------------- src/routes/Preferences.vue | 2 +- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/App.vue b/src/App.vue index 28d2ffd..2eeff33 100644 --- a/src/App.vue +++ b/src/App.vue @@ -56,12 +56,14 @@ - diff --git a/src/routes/Preferences.vue b/src/routes/Preferences.vue index 9cd10b1..f9bceda 100644 --- a/src/routes/Preferences.vue +++ b/src/routes/Preferences.vue @@ -282,7 +282,7 @@ export default { id: 'region', type: 'select', label: 'Country', - default: 'US', + default: this.$store.getters['prefs/getPreference']('region', this.$store.state.i18n.parsed.region ?? 'US'), options: Object.entries(Countries.getNames(LocalizedNames.locale, { select: 'official' })) .sort((a, b) => this.$store.getters['i18n/compare'](a[1], b[1])) .map(([code, name]) => ({