From 2d814191136b59d6db20765f5ff8b217fcf3a760 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Tue, 9 Aug 2022 17:51:49 +0530 Subject: [PATCH] fix/improved form submission of Add column --- .../components/smartsheet-column/EditOrAdd.vue | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue index 350036f72d..c69bc749d0 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue @@ -66,6 +66,11 @@ function onCancel() { } } +async function onSubmit() { + await addOrUpdate(reloadMetaAndData) + advancedOptions.value = false +} + // create column meta if it's a new column watchEffect(() => { if (!isEdit.value) { @@ -171,17 +176,7 @@ watch( {{ $t('general.cancel') }} - + {{ $t('general.save') }}