Refaktoring verejneho profilu, pridani zobrazeni udalosti
This commit is contained in:
@@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user