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