Browse Source

fix/removed context menu from grid readonly mode

pull/3197/head
Muhammed Mustafa 2 years ago
parent
commit
db4185243a
  1. 10
      packages/nc-gui-v2/components/smartsheet/Grid.vue

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

@ -59,7 +59,15 @@ const { xWhere, isPkAvail, cellRefs } = useSmartsheetStoreOrThrow()
const addColumnDropdown = ref(false)
const contextMenu = ref(false)
const _contextMenu = ref(false)
const contextMenu = computed({
get: () => _contextMenu.value,
set: (val) => {
if (!readonly) {
_contextMenu.value = val
}
},
})
const contextMenuTarget = ref(false)
const expandedFormDlg = ref(false)

Loading…
Cancel
Save