Browse Source

fix(gui-v2): revise isUIAllowed & v-t in navdrawer

pull/3087/head
Wing-Kam Wong 2 years ago
parent
commit
4a1e79f072
  1. 18
      packages/nc-gui-v2/pages/nc/[projectId]/index.vue

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

@ -123,8 +123,8 @@ await loadTables()
<a-menu-item key="teamAndAuth"> <a-menu-item key="teamAndAuth">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('teamAndAuth')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:team-and-auth']"
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'teamAndAuth')" @click="toggleDialog(true, 'teamAndAuth')"
> >
@ -135,8 +135,8 @@ await loadTables()
<a-menu-item key="appStore"> <a-menu-item key="appStore">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('appStore')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:app-store']"
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'appStore')" @click="toggleDialog(true, 'appStore')"
> >
@ -147,8 +147,8 @@ await loadTables()
<a-menu-item key="metaData"> <a-menu-item key="metaData">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('projectMetadata')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:project-metadata']"
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'metaData')" @click="toggleDialog(true, 'metaData')"
> >
@ -159,8 +159,8 @@ await loadTables()
<a-menu-item key="audit"> <a-menu-item key="audit">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('audit')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:audit']"
class="nc-project-menu-item group" class="nc-project-menu-item group"
@click="toggleDialog(true, 'audit')" @click="toggleDialog(true, 'audit')"
> >
@ -171,7 +171,7 @@ await loadTables()
<a-menu-divider /> <a-menu-divider />
<a-sub-menu key="preview-as"> <a-sub-menu v-if="isUIAllowed('previewAs')" key="preview-as" v-t="['c:navdraw:preview-as']">
<template #title> <template #title>
<div class="nc-project-menu-item group"> <div class="nc-project-menu-item group">
<MdiContentCopy class="group-hover:text-pink-500" /> <MdiContentCopy class="group-hover:text-pink-500" />

Loading…
Cancel
Save