Avatar do admina, pridani debrief informaci

This commit is contained in:
Michal Kváček
2024-01-20 22:08:49 +01:00
parent b0aa6b5628
commit 08a3cbf3d9
12 changed files with 145 additions and 74 deletions
+1 -6
View File
@@ -1,12 +1,9 @@
<script>
import {usePilotsStore} from "stores/Pilots";
import {useAppStore} from "stores/App";
export default {
preFetch({store, currentRoute}) {
return usePilotsStore(store).fetchPublicPilotDetail(currentRoute.params.username).catch(e => {
useAppStore().appStatus = 404;
});
return usePilotsStore(store).fetchPublicPilotDetail(currentRoute.params.username).catch(e => {});
},
}
</script>
@@ -16,8 +13,6 @@ import {storeToRefs} from "pinia";
import PilotProfileCard from "components/profile/PilotProfileCard.vue";
import PublicProfileSkeleton from "components/profile/skeletons/PublicProfileSkeleton.vue";
console.log("pilot profile wrapper");
const {pilot, isQueryRunning: pilotLoading} = storeToRefs(usePilotsStore());
</script>