Browse Source

fix(nc-gui): add duration to isAutoSaved

pull/4084/head
Wing-Kam Wong 2 years ago
parent
commit
4f17dbc966
  1. 4
      packages/nc-gui/components/smartsheet/Cell.vue

4
packages/nc-gui/components/smartsheet/Cell.vue

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { UITypes } from 'nocodb-sdk'
import type { ColumnType } from 'nocodb-sdk' import type { ColumnType } from 'nocodb-sdk'
import { UITypes } from 'nocodb-sdk'
import { import {
ActiveCellInj, ActiveCellInj,
ColumnInj, ColumnInj,
@ -81,6 +81,7 @@ const isAutoSaved = $computed(() => {
UITypes.AutoNumber, UITypes.AutoNumber,
UITypes.SpecificDBType, UITypes.SpecificDBType,
UITypes.Geometry, UITypes.Geometry,
UITypes.Duration,
].includes(column?.value?.uidt as UITypes) ].includes(column?.value?.uidt as UITypes)
}) })
@ -95,6 +96,7 @@ const vModel = computed({
if (isAutoSaved) { if (isAutoSaved) {
syncValue() syncValue()
} else if (!isManualSaved) { } else if (!isManualSaved) {
console.log('save')
emit('save') emit('save')
currentRow.value.rowMeta.changed = true currentRow.value.rowMeta.changed = true
} }

Loading…
Cancel
Save