Browse Source

Merge pull request #5249 from gitstart/NCDBOSS-32

fix: No autosave when moving to "Next Row" in expanded record view
pull/5261/head
navi 2 years ago committed by GitHub
parent
commit
1577013408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

9
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -64,7 +64,7 @@ const isKanban = inject(IsKanbanInj, ref(false))
provide(MetaInj, meta) provide(MetaInj, meta)
const { commentsDrawer, changedColumns, state: rowState, isNew, loadRow } = useProvideExpandedFormStore(meta, row) const { commentsDrawer, changedColumns, state: rowState, isNew, loadRow,save } = useProvideExpandedFormStore(meta, row)
const duplicatingRowInProgress = ref(false) const duplicatingRowInProgress = ref(false)
@ -126,6 +126,11 @@ const onDuplicateRow = () => {
}, 500) }, 500)
} }
const onNext = async () => {
await save()
emits('next')
}
const reloadParentRowHook = inject(ReloadRowDataHookInj, createEventHook()) const reloadParentRowHook = inject(ReloadRowDataHookInj, createEventHook())
// override reload trigger and use it to reload grid and the form itself // override reload trigger and use it to reload grid and the form itself
@ -180,7 +185,7 @@ export default {
<template #title> <template #title>
{{ $t('labels.nextRow') }} {{ $t('labels.nextRow') }}
</template> </template>
<MdiChevronRight class="cursor-pointer nc-next-arrow" @click="$emit('next')" /> <MdiChevronRight class="cursor-pointer nc-next-arrow" @click="onNext" />
</a-tooltip> </a-tooltip>
<a-tooltip placement="bottom"> <a-tooltip placement="bottom">
<template #title> <template #title>

Loading…
Cancel
Save