Browse Source

fix/improved form submission of Add column

pull/3057/head
Muhammed Mustafa 2 years ago committed by Pranav C
parent
commit
2d81419113
  1. 17
      packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue

17
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 // create column meta if it's a new column
watchEffect(() => { watchEffect(() => {
if (!isEdit.value) { if (!isEdit.value) {
@ -171,17 +176,7 @@ watch(
<!-- Cancel --> <!-- Cancel -->
{{ $t('general.cancel') }} {{ $t('general.cancel') }}
</a-button> </a-button>
<a-button <a-button html-type="submit" type="primary" size="small" @click="onSubmit">
html-type="submit"
type="primary"
size="small"
@click="
() => {
addOrUpdate(reloadMetaAndData)
advancedOptions = false
}
"
>
<!-- Save --> <!-- Save -->
{{ $t('general.save') }} {{ $t('general.save') }}
</a-button> </a-button>

Loading…
Cancel
Save