From 306a5f98c575843ccc8490c2479df28436cc1edd Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Tue, 5 Nov 2024 20:18:47 +0100 Subject: [PATCH] fix: header/footer class is not an array anymore in KAttribution --- docs/api/map/components.md | 16 ++++++++-------- map/client/components/KAttribution.vue | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/api/map/components.md b/docs/api/map/components.md index c25f3dd44..7a633cef2 100644 --- a/docs/api/map/components.md +++ b/docs/api/map/components.md @@ -296,19 +296,19 @@ Example configuration: attribution: { header: [ { - id: 'attribution-header', - component: 'KStamp', - text: 'Map credits' + id: 'attribution-header', + component: 'KStamp', + text: 'Map credits' } ], - headerClass: ['bg-secondary'], + headerClass: 'bg-secondary', footer: [ { - id: 'attribution-footer', - component: 'KStamp', - text: 'Please respect copyright' + id: 'attribution-footer', + component: 'KStamp', + text: 'Please respect copyright' } ], - footerClass: ['bg-secondary'], + footerClass: 'bg-secondary' } ``` \ No newline at end of file diff --git a/map/client/components/KAttribution.vue b/map/client/components/KAttribution.vue index 379a7a5ee..12199fffe 100644 --- a/map/client/components/KAttribution.vue +++ b/map/client/components/KAttribution.vue @@ -59,9 +59,9 @@ import KContent from '../../../core/client/components/KContent.vue' const { CurrentActivity } = useCurrentActivity({ selection: false, probe: false }) const attributions = ref({}) const header = ref(_.get(config, 'attribution.header', [])) -const headerClass = ref(_.get(config, 'attribution.headerClass', [])) +const headerClass = ref(_.get(config, 'attribution.headerClass', '')) const footer = ref(_.get(config, 'attribution.footer', [])) -const footerClass = ref(_.get(config, 'attribution.footerClass', [])) +const footerClass = ref(_.get(config, 'attribution.footerClass', '')) // Computed const sanitizedAttributions = computed(() => {