File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const { xs } = useDisplay()
77
88// Component state
99const isExternalLink = computed (() =>
10- isExternalUrl (nuxtifyConfig .announcement .buttonUrl , nuxtifyConfig .brand .domain ),
10+ isExternalUrl (nuxtifyConfig .announcement ? .buttonUrl ?? ' ' , nuxtifyConfig .brand ? .domain ?? ' ' ),
1111)
1212 </script >
1313
@@ -19,14 +19,14 @@ const isExternalLink = computed(() =>
1919 class =" justify-center text-start"
2020 >
2121 <div
22- v-if =" nuxtifyConfig.announcement.message"
22+ v-if =" nuxtifyConfig.announcement? .message"
2323 :class =" `${xs ? 'text-subtitle-2' : 'text-subtitle-1'} mr-4`"
2424 >
2525 {{ nuxtifyConfig.announcement.message }}
2626 </div >
2727 <v-btn
2828 v-if ="
29- nuxtifyConfig.announcement.buttonText && nuxtifyConfig.announcement.buttonUrl
29+ nuxtifyConfig.announcement? .buttonText && nuxtifyConfig.announcement.buttonUrl
3030 "
3131 :to =" !isExternalLink ? nuxtifyConfig.announcement.buttonUrl : undefined"
3232 :href =" isExternalLink ? nuxtifyConfig.announcement.buttonUrl : undefined"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const { mdAndUp } = useDisplay()
1717 <AppNavigationDrawer class =" d-print-none" />
1818
1919 <AppAnnouncementBar
20- v-if =" nuxtifyConfig.announcement.show"
20+ v-if =" nuxtifyConfig.announcement? .show"
2121 class =" d-print-none"
2222 />
2323
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const nuxtifyConfig = useNuxtifyConfig()
1515<template >
1616 <v-container class =" text-center" >
1717 <ClientOnly >
18- <h1 >{{ nuxtifyConfig.brand.name }} Home</h1 >
18+ <h1 >{{ nuxtifyConfig.brand? .name }} Home</h1 >
1919 <template #fallback >
2020 <AppLoading />
2121 </template >
You can’t perform that action at this time.
0 commit comments