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" :row="expandedFormRow"
:state="expandedFormRowState" :state="expandedFormRowState"
:meta="meta" :meta="meta"
@remove-last-empty-row="removeLastEmptyRow" @cancel="removeLastEmptyRow"
/> />
</div> </div>
</template> </template>

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

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

Loading…
Cancel
Save