Browse Source

fix(nc-gui): EditOrAdd not mounting properly

pull/3801/head
braks 2 years ago
parent
commit
f060043711
  1. 3
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
  2. 3
      packages/nc-gui/components/smartsheet/column/EditOrAddProvider.vue

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

@ -115,7 +115,7 @@ onMounted(() => {
:class="{ '!w-[600px]': formState.uidt === UITypes.Formula }"
@click.stop
>
<a-form v-if="formState" v-model="formState" no-style name="column-create-or-edit" layout="vertical">
<a-form v-model="formState" no-style name="column-create-or-edit" layout="vertical">
<div class="flex flex-col gap-2">
<a-form-item :label="$t('labels.columnName')" v-bind="validateInfos.title">
<a-input ref="antInput" v-model:value="formState.title" class="nc-column-name-input" @input="onAlter(8)" />
@ -191,6 +191,7 @@ onMounted(() => {
<!-- Cancel -->
{{ $t('general.cancel') }}
</a-button>
<a-button html-type="submit" type="primary" @click.prevent="onSubmit">
<!-- Save -->
{{ $t('general.save') }}

3
packages/nc-gui/components/smartsheet/column/EditOrAddProvider.vue

@ -1,4 +1,5 @@
<script lang="ts" setup>
// todo: Remove this "Provider" component and use the "EditOrAdd" component directly
import type { ColumnType } from 'nocodb-sdk'
import { MetaInj, inject, ref, toRef, useProvideColumnCreateStore } from '#imports'
@ -18,5 +19,5 @@ useProvideColumnCreateStore(meta, column)
</script>
<template>
<LazySmartsheetColumnEditOrAdd @submit="emit('submit')" @cancel="emit('cancel')" />
<SmartsheetColumnEditOrAdd @submit="emit('submit')" @cancel="emit('cancel')" />
</template>

Loading…
Cancel
Save