Browse Source

fix(gui-v2): avoid unnecessary emit in delete table

- event already emitting inside the useTable composable

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3271/head
Pranav C 2 years ago
parent
commit
a58bc43578
  1. 7
      packages/nc-gui-v2/components/dashboard/TreeView.vue

7
packages/nc-gui-v2/components/dashboard/TreeView.vue

@ -352,7 +352,7 @@ function openTableCreateDialog() {
</div>
</a-menu-item>
<a-menu-item v-if="isUIAllowed('table-delete')" @click="() => $e('c:table:delete') && deleteTable(table)">
<a-menu-item v-if="isUIAllowed('table-delete')" @click="deleteTable(table)">
<div class="nc-project-menu-item">
{{ $t('general.delete') }}
</div>
@ -386,10 +386,7 @@ function openTableCreateDialog() {
</div>
</a-menu-item>
<a-menu-item
v-if="isUIAllowed('table-delete')"
@click="() => $e('c:table:delete') && deleteTable(contextMenuTarget.value)"
>
<a-menu-item v-if="isUIAllowed('table-delete')" @click="deleteTable(contextMenuTarget.value)">
<div class="nc-project-menu-item">
{{ $t('general.delete') }}
</div>

Loading…
Cancel
Save