Changes
This commit is contained in:
@@ -4,10 +4,19 @@ const props = defineProps({
|
||||
type: Object,
|
||||
required: true,
|
||||
default: {}
|
||||
},
|
||||
inShow: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span v-if="props.row.vehicle">{{props.row.vehicle.id ? props.row.vehicle.licensePlate : ''}}</span>
|
||||
<div v-if="props.row.vehicle">
|
||||
<nuxt-link v-if="props.inShow" :to="`/standardEntity/vehicles/show/${props.row.vehicle.id}`">
|
||||
{{ props.row.vehicle ? props.row.vehicle.name : '' }}
|
||||
</nuxt-link>
|
||||
<span v-else>{{ props.row.vehicle ? props.row.vehicle.name : '' }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user