diff --git a/software/backend/models/acts/tour.model.ts b/software/backend/models/acts/tour.model.ts index c59d90c..e1eec93 100644 --- a/software/backend/models/acts/tour.model.ts +++ b/software/backend/models/acts/tour.model.ts @@ -23,5 +23,5 @@ export class Tour extends Model { band: Band @HasMany(() => Concert) - shows: Concert[] + concerts: Concert[] } \ No newline at end of file diff --git a/software/src/App.vue b/software/src/App.vue index 3577c3d..6f26b62 100644 --- a/software/src/App.vue +++ b/software/src/App.vue @@ -7,6 +7,7 @@ import navigationPrependItems from './components/navigation/navigationPrependIte import { usePreferencesStore } from './data/stores/preferencesStore'; import { useFeedbackStore } from './data/stores/feedbackStore'; import { useConcertStore } from './data/stores/concertStore'; +import { LocationModel } from './data/models/acts/locationModel'; const preferencesStore = usePreferencesStore() const concertStore = useConcertStore() @@ -22,6 +23,19 @@ concertStore.fetchAllTours() watch(() => preferencesStore.language, () => { i18n.global.locale = preferencesStore.language }, { immediate: true }) + +watch(() => concertStore.cityFilter, () => { + concertStore.locationFilter = new LocationModel() + concertStore.filterTours() +}) + +watch(() => concertStore.locationFilter, () => { + concertStore.filterTours() +}) + +watch(() => concertStore.genreFilter, () => { + concertStore.filterTours() +}) --> - +