Allow to search groups by location

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-05 16:44:08 +02:00
parent 3bae65374f
commit 3c077c59ad
18 changed files with 408 additions and 149 deletions

View File

@@ -177,11 +177,13 @@ const tabsName: { events: number; groups: number } = {
query: SEARCH_GROUPS,
variables() {
return {
searchText: this.search,
term: this.search,
location: this.geohash,
radius: this.radius,
};
},
skip() {
return this.search == null || this.search == "";
return !this.search && !this.geohash;
},
},
},
@@ -264,7 +266,7 @@ export default class Search extends Vue {
radiusOptions: (number | null)[] = [1, 5, 10, 25, 50, 100, 150, null];
radius: number | null = null;
radius: number = 50;
submit() {
this.$apollo.queries.searchEvents.refetch();