From 8575395437e1c2a76d5064e3f08edeecc1126e33 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Tue, 13 Feb 2024 17:52:24 +0100 Subject: [PATCH] Make import button and progress radial reactive --- .../(app)/libraries/[id=urn]/+page.svelte | 90 ++++++++----------- 1 file changed, 35 insertions(+), 55 deletions(-) diff --git a/frontend/src/routes/(app)/libraries/[id=urn]/+page.svelte b/frontend/src/routes/(app)/libraries/[id=urn]/+page.svelte index e3e779472f..9469e789b7 100644 --- a/frontend/src/routes/(app)/libraries/[id=urn]/+page.svelte +++ b/frontend/src/routes/(app)/libraries/[id=urn]/+page.svelte @@ -1,20 +1,17 @@
-
-
-

{library.name}

-
-

Description: {library.description}

-

Provider: {library.provider}

-

Packager: {library.packager}

- {#if library.dependencies} -

- Dependendies: - {#each library.dependencies as dependency} -

  • - {dependency} -
  • - {/each} -

    - {/if} - {#if library.copyright} -

    Copyright: {library.copyright}

    - {/if} -
    -
    - {#if !library.id} -
    - {#if loading} -
    - -
    - {:else} - +
    + +

    {data.library.name}

    +
    + {#if displayImportButton} + {#if loading} + + {:else}
    { loading = true; return async ({ update }) => { - loading = false; update(); }; }} > - - + {/if} {/if}
    - {/if} +
    +
    +

    Description: {data.library.description}

    +

    Provider: {data.library.provider}

    +

    Packager: {data.library.packager}

    + {#if data.library.dependencies} +

    + Dependendies: + {#each data.library.dependencies as dependency} +

  • + {dependency} +
  • + {/each} +

    + {/if} + {#if data.library.copyright} +

    Copyright: {data.library.copyright}

    + {/if} +
    {#if riskMatrices.length > 0}