Browse Source

fix(gui-v2): telemetry directive warnings

pull/3243/head
braks 2 years ago
parent
commit
f48664ab4c
  1. 19
      packages/nc-gui-v2/components/dashboard/TreeView.vue
  2. 4
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

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

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

4
packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

@ -238,9 +238,9 @@ definePageMeta({
<a-menu-divider />
<a-sub-menu v-if="isUIAllowed('previewAs')" key="preview-as" v-t="['c:navdraw:preview-as']">
<a-sub-menu v-if="isUIAllowed('previewAs')" key="preview-as">
<template #title>
<div class="nc-project-menu-item group">
<div v-t="['c:navdraw:preview-as']" class="nc-project-menu-item group">
<MdiFileEyeOutline class="group-hover:text-pink-500" />
Preview Project As

Loading…
Cancel
Save