Pridani stranky pro verejny prehled letu s danym kopilotem
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user