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/row/RowEditFieldDurationReadOnly.vue
2024-01-18 12:31:59 +00:00

29 lines
675 B
Vue

<template>
<div class="control__elements">
<div>{{ formattedValue }}</div>
</div>
</template>
<script>
import rowEditField from '@baserow/modules/database/mixins/rowEditField'
import durationField from '@baserow/modules/database/mixins/durationField'
export default {
mixins: [rowEditField, durationField],
watch: {
'field.duration_format': {
handler() {
this.updateCopy(this.field, this.value)
this.updateFormattedValue(this.field, this.copy)
},
},
value: {
handler(newValue) {
this.updateCopy(this.field, newValue)
this.updateFormattedValue(this.field, this.copy)
},
},
},
}
</script>