Updated Map View
This commit is contained in:
@@ -17,7 +17,7 @@ defineOptions({ layout: MainLayout })
|
||||
|
||||
const props = defineProps<{
|
||||
achievement: Achievement
|
||||
userAchievement: UserAchievement
|
||||
userAchievement: UserAchievement | null
|
||||
user: User
|
||||
loggedInUser: User | null
|
||||
isFollowing: boolean
|
||||
@@ -28,6 +28,7 @@ const props = defineProps<{
|
||||
continents: Continent[]
|
||||
aircraft_families: Record<string, string[]>
|
||||
achievementCount: number
|
||||
canView: boolean
|
||||
}>()
|
||||
|
||||
|
||||
@@ -53,22 +54,10 @@ const unlocked = computed(() => {
|
||||
return true
|
||||
})
|
||||
|
||||
const difficultyVariant = computed(() => {
|
||||
switch (props.achievement.difficulty?.internal_name) {
|
||||
case 'easy': return 'easy'
|
||||
case 'moderate': return 'moderate'
|
||||
case 'hard': return 'hard'
|
||||
case 'expensive': return 'expensive'
|
||||
case 'near_impossible': return 'near-impossible'
|
||||
case 'impossible': return 'impossible'
|
||||
default: return 'economy'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ProfileLayout :achievementCount="achievementCount" :user="user" :isFollowing="isFollowing" :loading="flightsLoading">
|
||||
<Head :title="`${achievement.name}`" />
|
||||
<ProfileLayout :title="`${achievement.name}`" :canView="canView" :achievementCount="achievementCount" :user="user" :isFollowing="isFollowing" :loading="flightsLoading">
|
||||
<div class="innerLayout">
|
||||
<ButtonLink variant="flat" icon="mdi-arrow-left" :label="`Back to ${user.name}'s Achievements`" :href="`${route('profile.achievements', { user: user.name })}#${achievement.internal_name}`" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user