Updated Map View
This commit is contained in:
@@ -2,23 +2,29 @@
|
||||
import {Flight, User} from "@/Types/types";
|
||||
import ProfileHeader from "@/Components/FlightsGoneBy/ProfileHeader.vue";
|
||||
import PlaneLoader from "@/Components/FlightsGoneBy/PlaneLoader.vue";
|
||||
import PrivateProfileMessage from "@/Components/FlightsGoneBy/PrivateProfileMessage.vue";
|
||||
import {Head} from "@inertiajs/vue3";
|
||||
|
||||
defineProps<{
|
||||
user: User
|
||||
flightCount?: number
|
||||
achievementCount? : number
|
||||
isFollowing: boolean
|
||||
followStatus: string
|
||||
loading: boolean
|
||||
canView: boolean
|
||||
title?: string
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="board-wrapper">
|
||||
<ProfileHeader :show="achievementCount && achievementCount > 0 ? 'achievements' : 'flights'" :is-following="isFollowing" :user="user" :flightCount="flightCount" :achievementCount="achievementCount" />
|
||||
<Head :title="title" />
|
||||
<ProfileHeader :show="achievementCount && achievementCount > 0 ? 'achievements' : 'flights'" :followStatus="followStatus" :user="user" :flightCount="flightCount" :achievementCount="achievementCount" />
|
||||
<div v-if="loading" class="loading-state">
|
||||
<PlaneLoader />
|
||||
</div>
|
||||
<slot v-else />
|
||||
<slot v-else-if="canView" />
|
||||
<PrivateProfileMessage :name="user.name" v-else />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user