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

Loading…
Cancel
Save