diff --git a/front/src/components/ui/Section.vue b/front/src/components/ui/Section.vue index 33f3a1e29..8d21432ae 100644 --- a/front/src/components/ui/Section.vue +++ b/front/src/components/ui/Section.vue @@ -26,6 +26,14 @@ const hasContent = computed(() => { // @ts-expect-error too complex type thingy return Object.keys(props).some(key => (key === 'expand' || key === 'collapse' || key === 'action' || key.startsWith('h')) && props[key]) }) + +// TODO: (flupsi) Have to tidy this up... +const headingProps = computed(() => + Object.fromEntries(Object.entries(props).filter( + ([key, value]) => value + && (['page-heading', 'section-heading', 'large-section-heading', 'subsection-heading', 'caption', 'title', 'radio', 'secondary'] + .includes(key) || key.startsWith('h')) + )))