Browse Source

Merge pull request #3240 from nocodb/fix/gui-v2-disable-context-menu

fix(gui-v2): disable context menu
pull/3246/head
Raju Udava 2 years ago committed by GitHub
parent
commit
d933da3500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nc-gui-v2/components/general/PreviewAs.vue
  2. 2
      packages/nc-gui-v2/components/smartsheet/Grid.vue

3
packages/nc-gui-v2/components/general/PreviewAs.vue

@ -58,7 +58,8 @@ watch(previewAs, () => window.location.reload())
<div class="divider" />
<div class="pointer flex items-center gap-4">
<span>Preview as:</span>
<!-- Preview as -->
<span>{{ $t('activity.previewAs') }}</span>
<a-radio-group v-model:value="previewAs" name="radioGroup">
<a-radio v-for="role of roleList" :key="role.title" class="capitalize !text-white" :value="role.title"

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

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

Loading…
Cancel
Save