Skip to content

Commit

Permalink
fix: header/footer class is not an array anymore in KAttribution
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Nov 5, 2024
1 parent e4d7608 commit 9d9a495
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions docs/api/map/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,19 +289,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'
}
```
4 changes: 2 additions & 2 deletions map/client/components/KAttribution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 9d9a495

Please sign in to comment.