|
|
@ -138,6 +138,8 @@ provide(MetaInj, meta) |
|
|
|
|
|
|
|
|
|
|
|
const isLoading = ref(true) |
|
|
|
const isLoading = ref(true) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isSaving = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
const { |
|
|
|
commentsDrawer, |
|
|
|
commentsDrawer, |
|
|
|
changedColumns, |
|
|
|
changedColumns, |
|
|
@ -208,6 +210,8 @@ const onDuplicateRow = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const save = async () => { |
|
|
|
const save = async () => { |
|
|
|
|
|
|
|
isSaving.value = true |
|
|
|
|
|
|
|
|
|
|
|
let kanbanClbk |
|
|
|
let kanbanClbk |
|
|
|
if (activeView.value?.type === ViewTypes.KANBAN) { |
|
|
|
if (activeView.value?.type === ViewTypes.KANBAN) { |
|
|
|
kanbanClbk = (row: any, isNewRow: boolean) => { |
|
|
|
kanbanClbk = (row: any, isNewRow: boolean) => { |
|
|
@ -238,6 +242,8 @@ const save = async () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
emits('createdRecord', _row.value.row) |
|
|
|
emits('createdRecord', _row.value.row) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isSaving.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const isPreventChangeModalOpen = ref(false) |
|
|
|
const isPreventChangeModalOpen = ref(false) |
|
|
@ -875,6 +881,7 @@ export default { |
|
|
|
<NcButton |
|
|
|
<NcButton |
|
|
|
v-e="['c:row-expand:save']" |
|
|
|
v-e="['c:row-expand:save']" |
|
|
|
:disabled="changedColumns.size === 0 && !isUnsavedFormExist" |
|
|
|
:disabled="changedColumns.size === 0 && !isUnsavedFormExist" |
|
|
|
|
|
|
|
:loading="isSaving" |
|
|
|
class="nc-expand-form-save-btn !xs:(text-base)" |
|
|
|
class="nc-expand-form-save-btn !xs:(text-base)" |
|
|
|
data-testid="nc-expanded-form-save" |
|
|
|
data-testid="nc-expanded-form-save" |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
@ -921,7 +928,7 @@ export default { |
|
|
|
<div class="flex flex-row justify-end gap-x-2 mt-5"> |
|
|
|
<div class="flex flex-row justify-end gap-x-2 mt-5"> |
|
|
|
<NcButton type="secondary" @click="discardPreventModal">{{ $t('labels.discard') }}</NcButton> |
|
|
|
<NcButton type="secondary" @click="discardPreventModal">{{ $t('labels.discard') }}</NcButton> |
|
|
|
|
|
|
|
|
|
|
|
<NcButton key="submit" type="primary" label="Rename Table" loading-label="Renaming Table" @click="saveChanges"> |
|
|
|
<NcButton key="submit" type="primary" :loading="isSaving" @click="saveChanges"> |
|
|
|
{{ $t('tooltip.saveChanges') }} |
|
|
|
{{ $t('tooltip.saveChanges') }} |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|