Browse Source

fix: show advanced option and add missing import

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
0c8ee976a1
  1. 2
      packages/nc-gui/components/smartsheet/column/LinkOptions.vue
  2. 7
      packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue

2
packages/nc-gui/components/smartsheet/column/LinkOptions.vue

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useGlobal, useVModel } from '#imports'
import { useColumnCreateStoreOrThrow, useVModel } from '#imports'
const props = defineProps<{
value: any

7
packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue

@ -51,7 +51,7 @@ const refTables = $computed(() => {
const filterOption = (value: string, option: { key: string }) => option.key.toLowerCase().includes(value.toLowerCase())
const isLinks = $computed(() => vModel.value.uidt.type === UITypes.Links)
const isLinks = $computed(() => vModel.value.uidt === UITypes.Links)
</script>
<template>
@ -88,7 +88,7 @@ const isLinks = $computed(() => vModel.value.uidt.type === UITypes.Links)
</a-select>
</a-form-item>
</div>
<template v-if="!isXcdbBase">
<template v-if="!isXcdbBase || isLinks">
<div
class="text-xs cursor-pointer text-grey nc-more-options my-2 flex items-center gap-1 justify-end"
@click="advancedOptions = !advancedOptions"
@ -100,7 +100,7 @@ const isLinks = $computed(() => vModel.value.uidt.type === UITypes.Links)
<div v-if="advancedOptions" class="flex flex-col p-6 gap-4 border-2 mt-2">
<LazySmartsheetColumnLinkOptions v-model:value="vModel" class="-my-2" />
<template v-if="!isXcdbBase">
<div class="flex flex-row space-x-2">
<a-form-item class="flex w-1/2" :label="$t('labels.onUpdate')">
<a-select
@ -138,6 +138,7 @@ const isLinks = $computed(() => vModel.value.uidt.type === UITypes.Links)
</a-checkbox>
</a-form-item>
</div>
</template>
</div>
</template>
</div>

Loading…
Cancel
Save