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
@@ -4,9 +4,9 @@ import {storeToRefs} from "pinia";
export const loading = ref(true);
export const copilot = ref(null);
export const fetchCopilot = (copilotId) => {
export const fetchCopilot = (copilotId, pilotUsername) => {
loading.value = true;
return useCopilotsStore().fetchDetail(parseInt(copilotId))
return useCopilotsStore().fetchDetail(parseInt(copilotId), pilotUsername)
.then(resp => {
copilot.value = resp;
return resp;