This commit is contained in:
parent
3fb17e6fec
commit
791988d1f9
@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import {Button, Spinner} from 'flowbite-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';
|
||||
|
||||
export let node: api.Node;
|
||||
@ -38,7 +38,7 @@
|
||||
onDestroy(() => { if (src.startsWith('blob')) URL.revokeObjectURL(src); });
|
||||
</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 === ''}
|
||||
<Button class="w-full" outline on:click={load}>Load</Button>
|
||||
{:else if loading}
|
||||
|
Loading…
Reference in New Issue
Block a user