Browse Source

refactor(gui): make default behaviour as save and stay

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5271/head
Pranav C 2 years ago
parent
commit
9fe91ec853
  1. 2
      packages/nc-gui/components/smartsheet/expanded-form/Header.vue
  2. 2
      packages/nc-gui/composables/useExpandedFormStore.ts

2
packages/nc-gui/components/smartsheet/expanded-form/Header.vue

@ -138,7 +138,6 @@ const onConfirmDeleteRowClick = async () => {
</a-tooltip>
<a-tooltip v-if="!isSqlView" placement="bottom">
&lt;!&ndash; Duplicate row &ndash;&gt;
<template #title>
<div class="text-center w-full">{{ $t('activity.duplicateRow') }}</div>
</template>
@ -224,7 +223,6 @@ const onConfirmDeleteRowClick = async () => {
@click="emit('cancel')"
/>
</a-tooltip>
-->
<a-modal v-model:visible="showDeleteRowModal" title="Delete row?" @ok="onConfirmDeleteRowClick">
<p>Are you sure you want to delete this row?</p>

2
packages/nc-gui/composables/useExpandedFormStore.ts

@ -38,7 +38,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
const commentsDrawer = ref(false)
const saveRowAndStay = ref(0)
const saveRowAndStay = ref(1)
const changedColumns = ref(new Set<string>())

Loading…
Cancel
Save