1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-23 00:19:40 +00:00
bramw_baserow/web-frontend/modules/database/components/row/RowHistoryFieldBoolean.vue
2025-05-02 11:14:27 +02:00

49 lines
1.1 KiB
Vue

<template>
<div class="row-history-entry__field-content">
<div v-if="before">
<div
class="row-history-entry__diff row-history-entry__diff--removed row-history-field-boolean__diff"
>
<i class="iconoir-check"></i>
</div>
</div>
<div v-if="after">
<div
class="row-history-entry__diff row-history-entry__diff--added row-history-field-boolean__diff"
>
<i class="iconoir-check"></i>
</div>
</div>
</div>
</template>
<script>
import { trueValues } from '@baserow/modules/core/utils/constants'
export default {
name: 'RowHistoryFieldBoolean',
props: {
entry: {
type: Object,
required: true,
},
fieldIdentifier: {
type: String,
required: true,
},
field: {
type: Object,
required: false,
default: null,
},
},
computed: {
before() {
return trueValues.includes(this.entry.before[this.fieldIdentifier])
},
after() {
return trueValues.includes(this.entry.after[this.fieldIdentifier])
},
},
}
</script>