Added Frontend
This commit is contained in:
19
frontend/components/columnRenderings/contact.vue
Normal file
19
frontend/components/columnRenderings/contact.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
row: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: {}
|
||||
},
|
||||
inShow: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="props.row.contact">
|
||||
<nuxt-link v-if="props.inShow" :to="`/standardEntity/contacts/show/${props.row.contact.id}`">{{props.row.contact ? props.row.contact.name : ''}}</nuxt-link>
|
||||
<span v-else>{{props.row.contact ? props.row.contact.name : ''}}</span>
|
||||
</div></template>
|
||||
Reference in New Issue
Block a user