Browse Source

fix(gui-v2): merge team & settings in project dropdown

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3172/head
mertmit 2 years ago
parent
commit
e84a6b5168
  1. 1
      packages/nc-gui-v2/components.d.ts
  2. 46
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

1
packages/nc-gui-v2/components.d.ts vendored

@ -105,6 +105,7 @@ declare module '@vue/runtime-core' {
MdiCloseCircle: typeof import('~icons/mdi/close-circle')['default']
MdiCloseThick: typeof import('~icons/mdi/close-thick')['default']
MdiCodeJson: typeof import('~icons/mdi/code-json')['default']
MdiCog: typeof import('~icons/mdi/cog')['default']
MdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
MdiContentSave: typeof import('~icons/mdi/content-save')['default']
MdiDatabaseOutline: typeof import('~icons/mdi/database-outline')['default']

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

@ -161,51 +161,15 @@ const isHovered = useElementHover(sidebar)
<a-menu-divider />
<a-menu-item key="teamAndAuth">
<a-menu-item key="teamAndSettings">
<div
v-if="isUIAllowed('teamAndAuth')"
v-t="['c:navdraw:team-and-auth']"
v-if="isUIAllowed('settings')"
v-t="['c:navdraw:project-settings']"
class="nc-project-menu-item group"
@click="toggleDialog(true, 'teamAndAuth')"
>
<MdiAccountGroup class="group-hover:text-pink-500 nc-team-and-auth" />
Team & Auth
</div>
</a-menu-item>
<a-menu-item key="appStore">
<div
v-if="isUIAllowed('appStore')"
v-t="['c:navdraw:app-store']"
class="nc-project-menu-item group"
@click="toggleDialog(true, 'appStore')"
>
<MdiStore class="group-hover:text-pink-500 nc-app-store" />
App Store
</div>
</a-menu-item>
<a-menu-item key="metaData">
<div
v-if="isUIAllowed('projectMetadata')"
v-t="['c:navdraw:project-metadata']"
class="nc-project-menu-item group"
@click="toggleDialog(true, 'metaData')"
>
<MdiTableBorder class="group-hover:text-pink-500 nc-meta-data" />
Project Metadata
</div>
</a-menu-item>
<a-menu-item key="audit">
<div
v-if="isUIAllowed('audit')"
v-t="['c:navdraw:audit']"
class="nc-project-menu-item group"
@click="toggleDialog(true, 'audit')"
>
<MdiNotebookCheckOutline class="group-hover:text-pink-500 nc-audit" />
Audit
<MdiCog class="group-hover:text-pink-500 nc-team-settings" />
Team & Settings
</div>
</a-menu-item>

Loading…
Cancel
Save