Fix dispatch parameter in AdventureCard.svelte and add Save as File button in +page.svelte
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
export let id:Number;
|
export let id:Number;
|
||||||
|
|
||||||
function remove() {
|
function remove() {
|
||||||
dispatch('remove', name);
|
dispatch('remove', id);
|
||||||
}
|
}
|
||||||
function edit() {
|
function edit() {
|
||||||
dispatch('edit', id)
|
dispatch('edit', id)
|
||||||
|
|||||||
@@ -89,7 +89,9 @@
|
|||||||
</form>
|
</form>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if adventures.length != 0}
|
||||||
<button on:click={async () => { window.location.href = exportData(); }}>Save as File</button>
|
<button on:click={async () => { window.location.href = exportData(); }}>Save as File</button>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.addsomething {
|
.addsomething {
|
||||||
|
|||||||
Reference in New Issue
Block a user