Browse Source

fix: show pointer only if editable

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5805/head
Pranav C 1 year ago
parent
commit
4b5d8481e4
  1. 3
      packages/nc-gui/components/smartsheet/Grid.vue

3
packages/nc-gui/components/smartsheet/Grid.vue

@ -972,8 +972,9 @@ function addEmptyRow(row?: number) {
<SmartsheetTableDataCell
v-for="(columnObj, colIndex) of fields"
:key="columnObj.id"
class="cell relative cursor-pointer nc-grid-cell"
class="cell relative nc-grid-cell"
:class="{
'cursor-pointer': hasEditPermission,
'active': hasEditPermission && isCellSelected(rowIndex, colIndex),
'nc-required-cell': isColumnRequiredAndNull(columnObj, row.row),
'align-middle': !rowHeight || rowHeight === 1,

Loading…
Cancel
Save