1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-25 00:46:46 +00:00
bramw_baserow/web-frontend/modules/database/components/view/grid/fields/GridViewFieldDateReadOnly.vue
2023-03-08 09:13:08 +00:00

30 lines
811 B
Vue

<template>
<div ref="cell" class="grid-view__cell active">
<div class="grid-field-date">
<div ref="dateDisplay" class="grid-field-date__date">
{{ getDate(field, value) }}
</div>
<div
v-if="field.date_include_time"
ref="timeDisplay"
class="grid-field-date__time"
>
{{ getTime(field, value) }}
</div>
<div v-if="field.date_show_tzinfo" class="grid-field-date__tzinfo">
{{ getCellTimezoneAbbr(field, value) }}
</div>
</div>
</div>
</template>
<script>
import gridField from '@baserow/modules/database/mixins/gridField'
import readOnlyDateField from '@baserow/modules/database/mixins/readOnlyDateField'
export default {
name: 'GridViewFieldDateReadOnly',
mixins: [gridField, readOnlyDateField],
}
</script>