Pridani stranky pro verejny prehled letu s danym kopilotem

This commit is contained in:
Michal Kváček
2023-11-02 09:03:12 +01:00
parent 40f21d159e
commit 6b1e220d42
9 changed files with 79 additions and 12 deletions
+7 -4
View File
@@ -8,10 +8,10 @@ const props = defineProps({
type: Object,
required: true
},
showCopilots: {
type: Boolean,
copilotDetailRoute: {
type: Object,
required: false,
default: false
default: null
}
})
</script>
@@ -98,7 +98,10 @@ const props = defineProps({
<q-icon name="people"/>
</q-item-section>
<q-item-section>
<router-link :to="{name: 'copilotDetail', params: {id: copilot.id}}" v-if="showCopilots">
<router-link
v-if="copilotDetailRoute"
:to="{name: copilotDetailRoute.name, params: {...copilotDetailRoute.params, id: copilot.id}}"
>
{{ copilot.name }}
</router-link>
<template v-else> {{ copilot.name }}</template>