Browse Source

fix: right click should disable `Clear` option for system column

pull/7173/head
Ramesh Mane 1 year ago
parent
commit
62754d8468
  1. 1
      packages/nc-gui/components/smartsheet/grid/Table.vue

1
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -1703,6 +1703,7 @@ onKeyStroke('ArrowDown', onDown)
(isLinksOrLTAR(fields[contextMenuTarget.col]) || !isVirtualCol(fields[contextMenuTarget.col])) (isLinksOrLTAR(fields[contextMenuTarget.col]) || !isVirtualCol(fields[contextMenuTarget.col]))
" "
class="nc-base-menu-item" class="nc-base-menu-item"
:disabled="!!isSystemColumn(fields[contextMenuTarget.col])"
@click="clearCell(contextMenuTarget)" @click="clearCell(contextMenuTarget)"
> >
<div v-e="['a:row:clear']" class="flex gap-2 items-center"> <div v-e="['a:row:clear']" class="flex gap-2 items-center">

Loading…
Cancel
Save