File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/client/theme-default/components Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ import VPFlyout from './VPFlyout.vue'
4
4
import VPMenuLink from ' ./VPMenuLink.vue'
5
5
import VPSwitchAppearance from ' ./VPSwitchAppearance.vue'
6
6
import VPSocialLinks from ' ./VPSocialLinks.vue'
7
+ import { computed } from ' vue'
7
8
8
9
const { site, theme } = useData ()
10
+
11
+ const hasExtraContent = computed (() => theme .value .localeLinks || site .value .appearance || theme .value .socialLinks )
9
12
</script >
10
13
11
14
<template >
12
- <VPFlyout class =" VPNavBarExtra" label =" extra navigation" >
15
+ <VPFlyout v-if = " hasExtraContent " class =" VPNavBarExtra" label =" extra navigation" >
13
16
<div v-if =" theme.localeLinks" class =" group" >
14
17
<p class =" trans-title" >{{ theme.localeLinks.text }}</p >
15
18
You can’t perform that action at this time.
0 commit comments