Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
v1lling committed Jan 26, 2023
2 parents 186d8bf + 8e33c76 commit 8265b27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/EventCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
<div class="flex w-full">
<div class="flex flex-col items-center">
<div class="text-6xl">
{{ eventDate.getDate() }}
{{( "0" + eventDate.getDate()).slice(-2) }}
</div>
<div>
{{ monthNames[eventDate.getMonth()] }}
Expand Down
4 changes: 3 additions & 1 deletion src/stores/eventStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineStore } from 'pinia'
import type {WasGehtEvent} from '@/models/event';
import router from '@/router';
import { tenantStore } from './tenantStore';

export const eventStore = defineStore({
id: 'eventStore',
Expand All @@ -14,9 +15,10 @@ export const eventStore = defineStore({
actions: {
async getEvents() {
this.isLoading = true;
const tStore = tenantStore();
let endpoint = `${import.meta.env.VITE_API_ENDPOINT}/events`;
endpoint += "?" + new URLSearchParams({
'city': this.selectedTenant ? this.selectedTenant!.toString() : "",
'city': tStore.tenant ? tStore.tenant.city : this.selectedTenant ? this.selectedTenant!.toString() : "",
'date': this.selectedDay ? this.selectedDay.toString() : ""
}).toString();
const res = await fetch(endpoint);
Expand Down

0 comments on commit 8265b27

Please sign in to comment.