Uprava setovani 404 (asi porad nefunguje), ruzne podminky, priprava na zapomenute heslo, sjednoceni nacitani letu v profilu

This commit is contained in:
Michal Kváček
2024-01-20 15:40:31 +01:00
parent 0c89884b23
commit b0aa6b5628
18 changed files with 444 additions and 97 deletions
+5 -1
View File
@@ -4,7 +4,9 @@ import {useAppStore} from "stores/App";
export default {
preFetch({store, currentRoute}) {
return usePilotsStore(store).fetchPublicPilotDetail(currentRoute.params.username).catch(e => {});
return usePilotsStore(store).fetchPublicPilotDetail(currentRoute.params.username).catch(e => {
useAppStore().appStatus = 404;
});
},
}
</script>
@@ -14,6 +16,8 @@ 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>