Browse Source

fix: fields menu for view types other than grid

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5060/head
mertmit 2 years ago
parent
commit
8f3f166b25
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

4
packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

@ -188,7 +188,7 @@ useMenuCloseOnEsc(open)
<Draggable v-model="fields" item-key="id" @change="onMove($event)">
<template #item="{ element: field, index: index }">
<div
v-if="filteredFieldList.slice(1).includes(field)"
v-if="filteredFieldList.slice(activeView?.type === ViewTypes.GRID ? 1 : 0).includes(field)"
:key="field.id"
class="px-2 py-1 flex items-center"
:data-testid="`nc-fields-menu-${field.title}`"
@ -212,7 +212,7 @@ useMenuCloseOnEsc(open)
<MdiDrag class="cursor-move" />
</div>
</template>
<template #header>
<template v-if="activeView?.type === ViewTypes.GRID" #header>
<div
v-if="filteredFieldList[0]"
v-show="filteredFieldList[0]"

Loading…
Cancel
Save