Fix #64
All checks were successful
/ Build the server (push) Successful in 3m7s

This commit is contained in:
Mutzi 2023-10-23 14:03:37 +02:00
parent 3fb17e6fec
commit 791988d1f9
Signed by: root
GPG Key ID: 2437494E09F13876

View File

@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import {Button, Spinner} from 'flowbite-svelte'; import {Button, Spinner} from 'flowbite-svelte';
import {Download} from 'carbon-icons-svelte'; import {Download} from 'carbon-icons-svelte';
import {api, rpc, token, workingWrapperR} from '../store'; import {api, download, rpc, token, workingWrapperR} from '../store';
import {onDestroy} from 'svelte'; import {onDestroy} from 'svelte';
export let node: api.Node; export let node: api.Node;
@ -38,7 +38,7 @@
onDestroy(() => { if (src.startsWith('blob')) URL.revokeObjectURL(src); }); onDestroy(() => { if (src.startsWith('blob')) URL.revokeObjectURL(src); });
</script> </script>
<Button class="w-full mb-6"><Download />Download</Button> <Button class="w-full mb-6" on:click={() => download($token ?? '', [node])}><Download />Download</Button>
{#if can_display && !loading && src === ''} {#if can_display && !loading && src === ''}
<Button class="w-full" outline on:click={load}>Load</Button> <Button class="w-full" outline on:click={load}>Load</Button>
{:else if loading} {:else if loading}