Pridani stranky pro verejny prehled letu s danym kopilotem

This commit is contained in:
Michal Kváček
2023-11-02 09:03:12 +01:00
parent 40f21d159e
commit 6b1e220d42
9 changed files with 79 additions and 12 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ export const useCopilotsStore = defineStore('Copilots', {
}),
actions: {
fetchDetail(copilotId) {
return apolloWrapper.query(COPILOT_DETAIL, {id: copilotId}).then(({data}) => data.copilot);
fetchDetail(copilotId, pilotUsername) {
return apolloWrapper.query(COPILOT_DETAIL, {id: copilotId, pilotUsername: pilotUsername}).then(({data}) => data.copilot);
},
fetch() {
return apolloWrapper.query(COPILOTS_LIST).then(result => {