Browse Source

fix(nc-gui): edit field modal field type change issue if we selected only name update column

pull/8653/head
Ramesh Mane 4 weeks ago
parent
commit
1e9c4b2a4e
  1. 15
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

15
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -23,8 +23,17 @@ const props = defineProps<{
const emit = defineEmits(['submit', 'cancel', 'mounted', 'add', 'update'])
const { formState, generateNewColumnMeta, addOrUpdate, onAlter, onUidtOrIdTypeChange, validateInfos, isEdit, disableSubmitBtn } =
useColumnCreateStoreOrThrow()
const {
formState,
column,
generateNewColumnMeta,
addOrUpdate,
onAlter,
onUidtOrIdTypeChange,
validateInfos,
isEdit,
disableSubmitBtn,
} = useColumnCreateStoreOrThrow()
const { getMeta } = useMetas()
@ -334,7 +343,7 @@ const submitBtnLabel = computed(() => {
v-model:value="formState.uidt"
show-search
class="nc-column-type-input !rounded-lg"
:disabled="isKanban || readOnly || (isEdit && !!onlyNameUpdateOnEditColumns.find((col) => col === formState.uidt))"
:disabled="isKanban || readOnly || (isEdit && !!onlyNameUpdateOnEditColumns.find((col) => col === column?.uidt))"
dropdown-class-name="nc-dropdown-column-type border-1 !rounded-lg border-gray-200"
@dropdown-visible-change="onDropdownChange"
@change="onUidtOrIdTypeChange"

Loading…
Cancel
Save