mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-23 12:50:16 +00:00
16 lines
314 B
JavaScript
16 lines
314 B
JavaScript
import { isValidURL } from '@baserow/modules/core/utils/string'
|
|
|
|
export default {
|
|
methods: {
|
|
isValid(value) {
|
|
return isValidURL(value?.url)
|
|
},
|
|
getLabelOrURL(value) {
|
|
if (!value) {
|
|
return ''
|
|
} else {
|
|
return value.label ? value.label : value.url
|
|
}
|
|
},
|
|
},
|
|
}
|