Browse Source

fix/minor cleanup

pull/3225/head
Muhammed Mustafa 2 years ago
parent
commit
5989049bc3
  1. 2
      packages/nc-gui-v2/components/smartsheet/Grid.vue
  2. 4
      packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue

2
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -511,7 +511,7 @@ const onNavigate = (dir: NavigateDir) => {
:row="expandedFormRow"
:state="expandedFormRowState"
:meta="meta"
@remove-last-empty-row="removeLastEmptyRow"
@cancel="removeLastEmptyRow"
/>
</div>
</template>

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

@ -36,7 +36,7 @@ interface Props {
const props = defineProps<Props>()
const emits = defineEmits(['update:modelValue', 'removeLastEmptyRow'])
const emits = defineEmits(['update:modelValue', 'cancel'])
const row = toRef(props, 'row')
@ -93,7 +93,7 @@ const isExpanded = useVModel(props, 'modelValue', emits, {
})
const onClose = () => {
if (row.value?.rowMeta?.new) emits('removeLastEmptyRow')
if (row.value?.rowMeta?.new) emits('cancel')
isExpanded.value = false
}
</script>

Loading…
Cancel
Save