Browse Source

Merge pull request #6766 from nocodb/nc-refactor/sidebar-menu

Add forum link in sidebar bottom menu
pull/6772/head
Pranav C 1 year ago committed by GitHub
parent
commit
20700f5bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      packages/nc-gui/components/dashboard/Sidebar/UserInfo.vue
  2. 2
      packages/nc-gui/lang/en.json

37
packages/nc-gui/components/dashboard/Sidebar/UserInfo.vue

@ -99,13 +99,12 @@ onMounted(() => {
<span class="menu-btn"> {{ $t('general.logout') }}</span> <span class="menu-btn"> {{ $t('general.logout') }}</span>
</NcMenuItem> </NcMenuItem>
<template v-if="!isMobileMode"> <template v-if="!isMobileMode">
<NcDivider /> <NcMenuItem v-e="['c:auth-token:copy']" @click="onCopy">
<a v-e="['c:nocodb:docs-open']" href="https://docs.nocodb.com" target="_blank" class="!underline-transparent"> <GeneralIcon v-if="isAuthTokenCopied" icon="check" class="group-hover:text-black menu-icon" />
<NcMenuItem> <GeneralIcon v-else icon="copy" class="menu-icon" />
<GeneralIcon icon="help" class="menu-icon mt-0.5" /> <template v-if="isAuthTokenCopied"> {{ $t('title.copiedAuthToken') }} </template>
<span class="menu-btn"> {{ $t('title.helpCenter') }} </span> <template v-else> {{ $t('title.copyAuthToken') }} </template>
</NcMenuItem> </NcMenuItem>
</a>
</template> </template>
<NcDivider /> <NcDivider />
<a v-e="['c:nocodb:discord']" href="https://discord.gg/5RgZmkW" target="_blank" class="!underline-transparent"> <a v-e="['c:nocodb:discord']" href="https://discord.gg/5RgZmkW" target="_blank" class="!underline-transparent">
@ -148,12 +147,24 @@ onMounted(() => {
<template v-if="!isMobileMode"> <template v-if="!isMobileMode">
<NcDivider /> <NcDivider />
<NcMenuItem v-e="['c:auth-token:copy']" @click="onCopy">
<GeneralIcon v-if="isAuthTokenCopied" icon="check" class="group-hover:text-black menu-icon" />
<GeneralIcon v-else icon="copy" class="menu-icon" />
<template v-if="isAuthTokenCopied"> {{ $t('title.copiedAuthToken') }} </template>
<template v-else> {{ $t('title.copyAuthToken') }} </template> <a v-e="['c:nocodb:forum-open']" href="https://community.nocodb.com" target="_blank" class="!underline-transparent">
</NcMenuItem> <NcMenuItem>
<GeneralIcon icon="help" class="menu-icon mt-0.5" />
<span class="menu-btn"> {{ $t('title.forum') }} </span>
</NcMenuItem>
</a>
<a v-e="['c:nocodb:docs-open']" href="https://docs.nocodb.com" target="_blank" class="!underline-transparent">
<NcMenuItem>
<GeneralIcon icon="doc" class="menu-icon mt-0.5" />
<span class="menu-btn"> {{ $t('title.docs') }} </span>
</NcMenuItem>
</a>
<nuxt-link v-e="['c:user:settings']" class="!no-underline" to="/account/profile"> <nuxt-link v-e="['c:user:settings']" class="!no-underline" to="/account/profile">
<NcMenuItem> <GeneralIcon icon="settings" class="menu-icon" /> {{ $t('title.accountSettings') }} </NcMenuItem> <NcMenuItem> <GeneralIcon icon="settings" class="menu-icon" /> {{ $t('title.accountSettings') }} </NcMenuItem>
</nuxt-link> </nuxt-link>

2
packages/nc-gui/lang/en.json

@ -293,6 +293,8 @@
"isNotNull": "is not null" "isNotNull": "is not null"
}, },
"title": { "title": {
"docs": "Docs",
"forum": "Forum",
"parameter": "Parameter", "parameter": "Parameter",
"headers": "Headers", "headers": "Headers",
"parameterName": "Parameter Name", "parameterName": "Parameter Name",

Loading…
Cancel
Save