From ea6d1ba83d9c2e20b5b56fa148dc6bc7e11cc009 Mon Sep 17 00:00:00 2001 From: Laurent GAY Date: Wed, 6 Nov 2024 17:36:35 +0100 Subject: [PATCH] #1492: search page correction + refactoring --- src/components/Local/CloseGroups.vue | 116 -------------------------- src/components/Local/LastEvents.vue | 68 --------------- src/components/Local/OnlineEvents.vue | 75 ----------------- src/components/NavBar.vue | 14 ---- src/views/SearchView.vue | 6 +- 5 files changed, 5 insertions(+), 274 deletions(-) delete mode 100644 src/components/Local/CloseGroups.vue delete mode 100644 src/components/Local/LastEvents.vue delete mode 100644 src/components/Local/OnlineEvents.vue diff --git a/src/components/Local/CloseGroups.vue b/src/components/Local/CloseGroups.vue deleted file mode 100644 index 0f238baef..000000000 --- a/src/components/Local/CloseGroups.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - diff --git a/src/components/Local/LastEvents.vue b/src/components/Local/LastEvents.vue deleted file mode 100644 index 959cec8a0..000000000 --- a/src/components/Local/LastEvents.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - diff --git a/src/components/Local/OnlineEvents.vue b/src/components/Local/OnlineEvents.vue deleted file mode 100644 index bf4036764..000000000 --- a/src/components/Local/OnlineEvents.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 31c1e966e..fdcf298ad 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -179,13 +179,6 @@ diff --git a/src/views/SearchView.vue b/src/views/SearchView.vue index 5907ba402..5ffdd8c62 100644 --- a/src/views/SearchView.vue +++ b/src/views/SearchView.vue @@ -943,7 +943,11 @@ const geoHashLocation = computed(() => const radius = computed({ get(): number | null { - return Number.parseInt(distance.value.slice(0, -3)); + if (addressName.value) { + return Number.parseInt(distance.value.slice(0, -3)); + } else { + return null; + } }, set(newRadius: number) { distance.value = newRadius.toString() + "_km";