Browse Source

chore(gui-v2): hide links on create / update pages

pull/3280/head
braks 2 years ago
parent
commit
a643cf3ea3
  1. 2
      packages/nc-gui-v2/components/general/ShareBaseButton.vue
  2. 2
      packages/nc-gui-v2/layouts/base.vue
  3. 26
      packages/nc-gui-v2/pages/index/index.vue

2
packages/nc-gui-v2/components/general/ShareBaseButton.vue

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useRoute } from '#imports'
import { useRoute, useUIPermission } from '#imports'
const route = useRoute()

2
packages/nc-gui-v2/layouts/base.vue

@ -59,7 +59,7 @@ hooks.hook('page:finish', () => {
<GeneralReleaseInfo />
<GeneralShareBaseButton v-if="!isSharedBase" class="pr-4 font-semibold text-white" />
<GeneralShareBaseButton v-if="!isSharedBase" class="pr-4 font-semibold" />
<a-tooltip placement="bottom" :mouse-enter-delay="1">
<template #title> Switch language</template>

26
packages/nc-gui-v2/pages/index/index.vue

@ -1,5 +1,11 @@
<script lang="ts" setup>
import { useRoute } from '#imports'
const route = useRoute()
</script>
<template>
<NuxtLayout class="">
<NuxtLayout>
<div
class="min-h-[calc(100vh_-_var(--header-height))] h-auto bg-primary bg-opacity-5 flex flex-col lg:flex-row flex-wrap gap-6 py-6 px-12 pt-65px"
>
@ -7,18 +13,22 @@
<GeneralSponsors />
</div>
<div class="min-w-2/4 xl:max-w-2/4 w-full flex-auto">
<div class="min-w-2/4 xl:max-w-2/4 w-full flex-auto mx-auto">
<NuxtPage />
</div>
<div class="flex flex-1 justify-between gap-6 lg:block">
<div>
<GeneralSocialCard />
</div>
<template v-if="route.name === 'index-index'">
<TransitionGroup name="page" mode="out-in">
<div>
<GeneralSocialCard />
</div>
<div class="block mt-0 lg:(!mt-6) xl:hidden">
<GeneralSponsors />
</div>
<div class="block mt-0 lg:(!mt-6) xl:hidden">
<GeneralSponsors />
</div>
</TransitionGroup>
</template>
</div>
</div>
</NuxtLayout>

Loading…
Cancel
Save