Browse Source

fix(gui-v2): disable edit mode if role is not allowed

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3179/head
mertmit 2 years ago
parent
commit
0d8f5ff07e
  1. 7
      packages/nc-gui-v2/components/smartsheet/Grid.vue

7
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -410,7 +410,12 @@ const expandForm = (row: Row, state: Record<string, any>) => {
v-else
v-model="row.row[columnObj.title]"
:column="columnObj"
:edit-enabled="editEnabled && selected.col === colIndex && selected.row === rowIndex"
:edit-enabled="
isUIAllowed('xcDatatableEditable') &&
editEnabled &&
selected.col === colIndex &&
selected.row === rowIndex
"
:row-index="rowIndex"
:active="selected.col === colIndex && selected.row === rowIndex"
@update:edit-enabled="editEnabled = false"

Loading…
Cancel
Save