Browse Source

fix(gui-v2): add missing isUIAllowed('xcDatatableEditable')

pull/3240/head
Wing-Kam Wong 2 years ago
parent
commit
10b5b71674
  1. 2
      packages/nc-gui-v2/components/smartsheet/Grid.vue

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

@ -486,7 +486,7 @@ const onNavigate = (dir: NavigateDir) => {
</tr> </tr>
</tbody> </tbody>
</table> </table>
<template v-if="!isLocked" #overlay> <template v-if="!isLocked && isUIAllowed('xcDatatableEditable')" #overlay>
<a-menu class="bg-white shadow" @click="contextMenu = false"> <a-menu class="bg-white shadow" @click="contextMenu = false">
<a-menu-item v-if="contextMenuTarget" @click="deleteRow(contextMenuTarget.row)" <a-menu-item v-if="contextMenuTarget" @click="deleteRow(contextMenuTarget.row)"
><span class="text-xs">Delete row</span></a-menu-item ><span class="text-xs">Delete row</span></a-menu-item

Loading…
Cancel
Save