|
|
@ -349,17 +349,13 @@ function openTableCreateDialog() { |
|
|
|
|
|
|
|
|
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
<a-menu-item |
|
|
|
<a-menu-item v-if="isUIAllowed('table-rename')" @click="openRenameTableDialog(table)"> |
|
|
|
v-if="isUIAllowed('table-rename')" |
|
|
|
|
|
|
|
v-t="['c:table:rename']" |
|
|
|
|
|
|
|
@click="openRenameTableDialog(table)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
{{ $t('general.rename') }} |
|
|
|
{{ $t('general.rename') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-menu-item> |
|
|
|
</a-menu-item> |
|
|
|
|
|
|
|
|
|
|
|
<a-menu-item v-if="isUIAllowed('table-delete')" v-t="['c:table:delete']" @click="deleteTable(table)"> |
|
|
|
<a-menu-item v-if="isUIAllowed('table-delete')" @click="() => $e('c:table:delete') && deleteTable(table)"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
{{ $t('general.delete') }} |
|
|
|
{{ $t('general.delete') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -387,11 +383,7 @@ function openTableCreateDialog() { |
|
|
|
<template v-if="!isLocked" #overlay> |
|
|
|
<template v-if="!isLocked" #overlay> |
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
<template v-if="contextMenuTarget.type === 'table'"> |
|
|
|
<template v-if="contextMenuTarget.type === 'table'"> |
|
|
|
<a-menu-item |
|
|
|
<a-menu-item v-if="isUIAllowed('table-rename')" @click="openRenameTableDialog(contextMenuTarget.value)"> |
|
|
|
v-if="isUIAllowed('table-rename')" |
|
|
|
|
|
|
|
v-t="['c:table:rename']" |
|
|
|
|
|
|
|
@click="openRenameTableDialog(contextMenuTarget.value)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
{{ $t('general.rename') }} |
|
|
|
{{ $t('general.rename') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -399,8 +391,7 @@ function openTableCreateDialog() { |
|
|
|
|
|
|
|
|
|
|
|
<a-menu-item |
|
|
|
<a-menu-item |
|
|
|
v-if="isUIAllowed('table-delete')" |
|
|
|
v-if="isUIAllowed('table-delete')" |
|
|
|
v-t="['c:table:delete']" |
|
|
|
@click="() => $e('c:table:delete') && deleteTable(contextMenuTarget.value)" |
|
|
|
@click="deleteTable(contextMenuTarget.value)" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
{{ $t('general.delete') }} |
|
|
|
{{ $t('general.delete') }} |
|
|
@ -409,7 +400,7 @@ function openTableCreateDialog() { |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<a-menu-item v-t="['c:table:reload']" @click="reloadTables"> |
|
|
|
<a-menu-item @click="reloadTables"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
<div class="nc-project-menu-item"> |
|
|
|
{{ $t('general.reload') }} |
|
|
|
{{ $t('general.reload') }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|