Prvni naznak verejne casti, sprava profilu
This commit is contained in:
@@ -35,9 +35,9 @@ export const useFlightsStore = defineStore('Flights', {
|
||||
}
|
||||
return apolloWrapper.query(FLIGHT_DETAIL, {id}).then(result => result.data.flight);
|
||||
},
|
||||
fetch() {
|
||||
fetch(username) {
|
||||
return apolloWrapper
|
||||
.query(FLIGHTS_LIST)
|
||||
.query(FLIGHTS_LIST, {username})
|
||||
.then(({data}) => {
|
||||
this.items = data.flights;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user