Refaktoring verejneho profilu, pridani zobrazeni udalosti
This commit is contained in:
@@ -11,11 +11,11 @@ export const useEventsStore = defineStore('Events', {
|
||||
}),
|
||||
|
||||
actions: {
|
||||
fetchDetail(eventId) {
|
||||
return apolloWrapper.query(EVENT_DETAIL, {id: eventId}).then(({data}) => data.event);
|
||||
fetchDetail(eventId, username) {
|
||||
return apolloWrapper.query(EVENT_DETAIL, {id: eventId, username: username}).then(({data}) => data.event);
|
||||
},
|
||||
fetch() {
|
||||
return apolloWrapper.query(EVENTS_LIST).then(result => {
|
||||
fetch(username) {
|
||||
return apolloWrapper.query(EVENTS_LIST, {username}).then(result => {
|
||||
this.items = result.data.events;
|
||||
return result.data.events;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user