Browse Source

fix: Added event to Table node

pull/6539/head
Muhammed Mustafa 1 year ago
parent
commit
bf760e49f0
  1. 1
      packages/nc-gui/components/dashboard/TreeView/TableList.vue
  2. 2
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue

1
packages/nc-gui/components/dashboard/TreeView/TableList.vue

@ -151,7 +151,6 @@ const availableTables = computed(() => {
<TableNode <TableNode
v-for="table of availableTables" v-for="table of availableTables"
:key="table.id" :key="table.id"
v-e="['a:table:open']"
class="nc-tree-item text-sm" class="nc-tree-item text-sm"
:data-order="table.order" :data-order="table.order"
:data-id="table.id" :data-id="table.id"

2
packages/nc-gui/components/dashboard/TreeView/TableNode.vue

@ -161,7 +161,7 @@ const isTableOpened = computed(() => {
> >
<template #title>{{ table.table_name }}</template> <template #title>{{ table.table_name }}</template>
<div <div
v-e="['c:table:open']" v-e="['a:table:open']"
class="table-context flex items-center gap-1 h-full" class="table-context flex items-center gap-1 h-full"
:data-testid="`nc-tbl-side-node-${table.title}`" :data-testid="`nc-tbl-side-node-${table.title}`"
@contextmenu="setMenuContext('table', table)" @contextmenu="setMenuContext('table', table)"

Loading…
Cancel
Save