Browse Source

refactor(gui): show advanced option on double click

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4968/head
Pranav C 2 years ago
parent
commit
6720d3449f
  1. 10
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

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

@ -18,7 +18,6 @@ import {
useI18n, useI18n,
useMetas, useMetas,
useNuxtApp, useNuxtApp,
useProject,
watchEffect, watchEffect,
} from '#imports' } from '#imports'
import MdiPlusIcon from '~icons/mdi/plus-circle-outline' import MdiPlusIcon from '~icons/mdi/plus-circle-outline'
@ -36,8 +35,6 @@ const { formState, generateNewColumnMeta, addOrUpdate, onAlter, onUidtOrIdTypeCh
const { getMeta } = useMetas() const { getMeta } = useMetas()
const { isXcdbBase } = useProject()
const { t } = useI18n() const { t } = useI18n()
const { $e } = useNuxtApp() const { $e } = useNuxtApp()
@ -201,7 +198,7 @@ useEventListener('keydown', (e: KeyboardEvent) => {
<div <div
v-if="!isVirtualCol(formState.uidt)" v-if="!isVirtualCol(formState.uidt)"
class="text-xs cursor-pointer text-gray-500 nc-more-options mb-1 mt-4 flex items-center gap-1 justify-end" class="text-xs cursor-pointer text-gray-400 nc-more-options mb-1 mt-4 flex items-center gap-1 justify-end"
@click="advancedOptions = !advancedOptions" @click="advancedOptions = !advancedOptions"
@dblclick="advancedDbOptions = !advancedDbOptions" @dblclick="advancedDbOptions = !advancedDbOptions"
> >
@ -226,10 +223,7 @@ useEventListener('keydown', (e: KeyboardEvent) => {
v-model:value="formState" v-model:value="formState"
/> />
<LazySmartsheetColumnAdvancedOptions <LazySmartsheetColumnAdvancedOptions v-model:value="formState" :advanced-db-options="advancedDbOptions" />
v-model:value="formState"
:advanced-db-options="advancedDbOptions && !isXcdbBase(meta.base_id)"
/>
</div> </div>
</Transition> </Transition>

Loading…
Cancel
Save