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

Loading…
Cancel
Save