Remove data property from Article View.
This commit is contained in:
parent
a0d9f1a06e
commit
6d9efd976f
4 changed files with 3 additions and 5 deletions
|
@ -1,12 +1,10 @@
|
|||
<script lang="ts">
|
||||
import { SummaryView } from "augmented-data-viewer"
|
||||
|
||||
import type { Aggregate } from "$lib/aggregates"
|
||||
import type { Article } from "$lib/legal"
|
||||
import { summarizeLegalObject } from "$lib/summaries"
|
||||
|
||||
export let article: Article
|
||||
export let data: Aggregate
|
||||
export let level = 1
|
||||
|
||||
$: summary = summarizeLegalObject({ key: "article" }, "article", article)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{#if items !== undefined}
|
||||
<div class="tabs">
|
||||
{#each items as { href, label }}
|
||||
<a class="tab tab-bordered" class:tab-active={href === pathname} {href}
|
||||
<a class="tab tab-lifted" class:tab-active={href === pathname} {href}
|
||||
>{label}</a
|
||||
>
|
||||
{/each}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{#each [...iterArrayOrSingleton(sectionTa.STRUCTURE_TA.LIEN_ART)] as lienArt}
|
||||
{@const article = data.article?.[lienArt["@id"]]}
|
||||
{#if article !== undefined}
|
||||
<ArticleView {article} {data} level={level + 1} />
|
||||
<ArticleView {article} level={level + 1} />
|
||||
{/if}
|
||||
{/each}
|
||||
{:else if sectionTa.STRUCTURE_TA.LIEN_ART !== undefined}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{#each [...iterArrayOrSingleton(textelr.STRUCT.LIEN_ART)] as lienArt}
|
||||
{@const article = data.article?.[lienArt["@id"]]}
|
||||
{#if article !== undefined}
|
||||
<ArticleView {article} {data} level={level + 1} />
|
||||
<ArticleView {article} level={level + 1} />
|
||||
{/if}
|
||||
{/each}
|
||||
{:else if textelr.STRUCT.LIEN_ART !== undefined}
|
||||
|
|
Loading…
Reference in a new issue