Browse Source

feat(nc-gui): show LazySmartsheetColumnAttachmentOptions only in ee

pull/4931/head
Wing-Kam Wong 2 years ago
parent
commit
4025e9d680
  1. 10
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

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

@ -17,6 +17,7 @@ import {
useI18n,
useMetas,
useNuxtApp,
useGlobal,
watchEffect,
} from '#imports'
import MdiPlusIcon from '~icons/mdi/plus-circle-outline'
@ -38,6 +39,8 @@ const { t } = useI18n()
const { $e } = useNuxtApp()
const { appInfo } = useGlobal()
const meta = inject(MetaInj, ref())
const isForm = inject(IsFormInj, ref(false))
@ -212,11 +215,12 @@ useEventListener('keydown', (e: KeyboardEvent) => {
</span>
</a-checkbox>
<LazySmartsheetColumnAttachmentOptions v-if="formState.uidt === UITypes.Attachment" v-model:value="formState" />
<LazySmartsheetColumnAttachmentOptions
v-if="appInfo.ee && formState.uidt === UITypes.Attachment"
v-model:value="formState"
/>
<LazySmartsheetColumnAdvancedOptions v-model:value="formState" />
</div>
</Transition>

Loading…
Cancel
Save