1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/database/components/card/RowCardFieldLinkURL.vue

27 lines
643 B
Vue

<template functional>
<div class="card-text">
<a
v-if="$options.methods.isValid(props.value)"
:href="props.value && props.value.url"
target="_blank"
rel="nofollow noopener noreferrer"
class="forced-pointer-events-auto"
@mousedown.stop
>
{{ $options.methods.getLabelOrURL(props.value) }}
</a>
<template v-else>
{{ $options.methods.getLabelOrURL(props.value) }}
</template>
</div>
</template>
<script>
import linkURLField from '@baserow/modules/database/mixins/linkURLField'
export default {
name: 'RowCardFieldLink',
mixins: [linkURLField],
height: 16,
}
</script>