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"> <script setup lang="ts">
import { useRoute } from '#imports' import { useRoute, useUIPermission } from '#imports'
const route = useRoute() const route = useRoute()

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

@ -59,7 +59,7 @@ hooks.hook('page:finish', () => {
<GeneralReleaseInfo /> <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"> <a-tooltip placement="bottom" :mouse-enter-delay="1">
<template #title> Switch language</template> <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> <template>
<NuxtLayout class=""> <NuxtLayout>
<div <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" 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 /> <GeneralSponsors />
</div> </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 /> <NuxtPage />
</div> </div>
<div class="flex flex-1 justify-between gap-6 lg:block"> <div class="flex flex-1 justify-between gap-6 lg:block">
<div> <template v-if="route.name === 'index-index'">
<GeneralSocialCard /> <TransitionGroup name="page" mode="out-in">
</div> <div>
<GeneralSocialCard />
</div>
<div class="block mt-0 lg:(!mt-6) xl:hidden"> <div class="block mt-0 lg:(!mt-6) xl:hidden">
<GeneralSponsors /> <GeneralSponsors />
</div> </div>
</TransitionGroup>
</template>
</div> </div>
</div> </div>
</NuxtLayout> </NuxtLayout>

Loading…
Cancel
Save