mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 00:38:35 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
35 lines
818 B
Vue
35 lines
818 B
Vue
<template>
|
|
<div class="array-field__button">
|
|
<Button
|
|
v-if="isValid(value)"
|
|
tag="a"
|
|
size="tiny"
|
|
type="secondary"
|
|
class="forced-pointer-events-auto array-field__button-button"
|
|
:href="value && value.url"
|
|
target="_blank"
|
|
rel="nofollow noopener noreferrer"
|
|
@mousedown.stop
|
|
>
|
|
<span class=".array-field__ellipsis">{{ getLabelOrURL(value) }}</span>
|
|
</Button>
|
|
<Button v-else size="tiny" type="secondary" tag="a" disabled>
|
|
{{ getLabelOrURL(value) }}
|
|
</Button>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import linkURLField from '@baserow/modules/database/mixins/linkURLField'
|
|
export default {
|
|
name: 'FunctionalFormulaButtonArrayItem',
|
|
mixins: [linkURLField],
|
|
props: {
|
|
value: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
},
|
|
}
|
|
</script>
|