Browse Source

refactor(gui-v2): use language menu component directly

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3242/head
Pranav C 2 years ago
parent
commit
7128895fc1
  1. 8
      packages/nc-gui-v2/components/general/language/index.vue
  2. 2
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

8
packages/nc-gui-v2/components/general/language/index.vue

@ -1,11 +1,5 @@
<script lang="ts" setup>
const { subMenu } = defineProps<{ subMenu?: boolean }>()
</script>
<template>
<GeneralLanguageMenu v-if="subMenu" />
<a-dropdown v-else class="select-none color-transition" :trigger="['click']">
<a-dropdown class="select-none color-transition" :trigger="['click']">
<MaterialSymbolsTranslate v-bind="$attrs" class="md:text-xl cursor-pointer nc-menu-translate" />
<template #overlay>

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

@ -271,7 +271,7 @@ definePageMeta({
</template>
<template #expandIcon></template>
<GeneralLanguage sub-menu />
<GeneralLanguageMenu />
</a-sub-menu>
<template v-if="signedIn && !isSharedBase">

Loading…
Cancel
Save