From 6d662be5dba7c1f34e9957a5bec9de623afd5081 Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 1 May 2024 03:17:28 +0300 Subject: [PATCH] fix: loading indicator for expanded form save Signed-off-by: mertmit --- .../nc-gui/components/smartsheet/expanded-form/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index 52db90f92b..56257e3798 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -138,6 +138,8 @@ provide(MetaInj, meta) const isLoading = ref(true) +const isSaving = ref(false) + const { commentsDrawer, changedColumns, @@ -208,6 +210,8 @@ const onDuplicateRow = () => { } const save = async () => { + isSaving.value = true + let kanbanClbk if (activeView.value?.type === ViewTypes.KANBAN) { kanbanClbk = (row: any, isNewRow: boolean) => { @@ -238,6 +242,8 @@ const save = async () => { } emits('createdRecord', _row.value.row) + + isSaving.value = false } const isPreventChangeModalOpen = ref(false) @@ -875,6 +881,7 @@ export default { {{ $t('labels.discard') }} - + {{ $t('tooltip.saveChanges') }}