Pridani skeletonu

This commit is contained in:
Michal Kváček
2023-11-01 06:19:26 +01:00
parent 3e7ee9e686
commit 40f21d159e
8 changed files with 82 additions and 22 deletions
+1 -5
View File
@@ -1,12 +1,9 @@
<script setup>
import {onMounted} from "vue";
import {useRoute} from "vue-router";
import {fetchFlights} from "src/composables/objects/flight";
import {fetchUser, user as pilot, loading as pilotLoading} from "src/composables/objects/user";
import {user as pilot, loading as pilotLoading} from "src/composables/objects/user";
import PublicProfileSkeleton from "components/profile/PublicProfileSkeleton.vue";
import {storeToRefs} from "pinia";
import {useUserStore} from "stores/User";
import {useAppStore} from "stores/App";
import PilotProfileCard from "components/profile/PilotProfileCard.vue";
const loggedUser = storeToRefs(useUserStore()).user;
@@ -22,6 +19,5 @@ const username = useRoute().params.username;
<PublicProfileSkeleton v-if="pilotLoading"/>
<PilotProfileCard v-else :pilot="pilot"/>
</div>
</div>
</template>