Refaktoring verejneho profilu, pridani zobrazeni udalosti

This commit is contained in:
Michal Kváček
2023-10-14 22:43:16 +02:00
parent 5b47c56c6f
commit 4c8952117b
12 changed files with 228 additions and 49 deletions
+2 -2
View File
@@ -18,9 +18,9 @@ export const fetchEvent = (eventId, username) => {
export const events = storeToRefs(useEventsStore()).items;
export const fetchEvents = () => {
export const fetchEvents = (username) => {
loading.value = true;
useEventsStore().fetch().finally(() => {
useEventsStore().fetch(username).finally(() => {
loading.value = false;
});
};