Browse Source

Merge pull request #6531 from nocodb/fix/lookup

feat: disabled cell ui
pull/6538/head
Raju Udava 1 year ago committed by GitHub
parent
commit
736f931fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/nc-gui/components/smartsheet/grid/Table.vue

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

@ -1429,6 +1429,10 @@ const handleCellClick = (event: MouseEvent, row: number, col: number) => {
'align-middle': !rowHeight || rowHeight === 1,
'align-top': rowHeight && rowHeight !== 1,
'filling': isCellInFillRange(rowIndex, colIndex),
'readonly':
(isLookup(columnObj) || isRollup(columnObj) || isFormula(columnObj)) &&
hasEditPermission &&
isCellSelected(rowIndex, colIndex),
}"
:data-testid="`cell-${columnObj.title}-${rowIndex}`"
:data-key="`data-key-${rowIndex}-${columnObj.id}`"
@ -1771,6 +1775,10 @@ const handleCellClick = (event: MouseEvent, row: number, col: number) => {
@apply text-primary border-current bg-primary bg-opacity-5;
}
td.active.readonly::after {
@apply text-primary bg-grey-50 bg-opacity-5 !border-gray-200;
}
td.active-cell::after {
@apply border-1 border-solid text-primary border-current bg-primary bg-opacity-3;
}

Loading…
Cancel
Save