User can add/edit flights
This commit is contained in:
@@ -18,6 +18,7 @@ defineProps<{
|
||||
email: string
|
||||
}
|
||||
flights: Flight[]
|
||||
canEdit: boolean
|
||||
}>()
|
||||
|
||||
type View = 'board' | 'passes' | 'map'
|
||||
@@ -67,7 +68,7 @@ const activeView = ref<View>('map')
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<DepartureBoard v-if="activeView === 'board'" :flights="flights" />
|
||||
<DepartureBoard v-if="activeView === 'board'" :flights="flights" :canEdit="canEdit" />
|
||||
<BoardingPasses v-else-if="activeView === 'passes'" :flights="flights" />
|
||||
<ProfileMap v-else-if="activeView === 'map'" :flights="flights" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user