Skip to content

Commit

Permalink
feat: Make Revision History collapsible. Make some collapsibles close…
Browse files Browse the repository at this point in the history
…d by default
  • Loading branch information
Thomas Junk committed Sep 4, 2023
1 parent c047a17 commit 8260a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/lib/singleview/general/General.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import { Status, TLP } from "$lib/singleview/general/docmodeltypes";
import { appStore } from "$lib/store";
let tlpStyle: string = "";
Expand Down Expand Up @@ -69,8 +70,7 @@
</div>

{#if $appStore.doc?.isRevisionHistoryPresent}
<div>
<h3>Revision History</h3>
<Collapsible header="Revision history" index="3" open={false}>
<table class="striped">
<thead>
<tr
Expand All @@ -90,7 +90,7 @@
{/each}
</tbody>
</table>
</div>
</Collapsible>
{/if}

<style>
Expand Down
6 changes: 3 additions & 3 deletions src/lib/singleview/vulnerabilities/Vulnerability.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</script>

<div>
<Collapsible {header} class_="text-primary" index="3">
<Collapsible {header} class_="text-primary" index="3" open={false}>
<div>
<dl>
{#if vulnerability.title}
Expand All @@ -33,7 +33,7 @@
{/if}
</dl>
{#if vulnerability.ids && Array.isArray(vulnerability.ids)}
<Collapsible header="IDs" index="4">
<Collapsible header="IDs" index="4" open={false}>
{#each vulnerability.ids as vulnerabilityID}
<dl>
<dt>Systemname</dt>
Expand All @@ -45,7 +45,7 @@
</Collapsible>
{/if}
{#if vulnerability.notes && Array.isArray(vulnerability.notes)}
<Collapsible header="Notes" index="4">
<Collapsible header="Notes" index="4" open={false}>
{#each vulnerability.notes as note}
<dl>
<dt>Title</dt>
Expand Down

0 comments on commit 8260a40

Please sign in to comment.