1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-28 17:29:36 +02:00

Fix dispatch parameter in AdventureCard.svelte and add Save as File button in +page.svelte

This commit is contained in:
Sean Morley 2024-03-29 22:44:26 +00:00
parent bd5e1a813b
commit 2f180a204b
2 changed files with 3 additions and 1 deletions

View file

@ -8,7 +8,7 @@
export let id:Number;
function remove() {
dispatch('remove', name);
dispatch('remove', id);
}
function edit() {
dispatch('edit', id)

View file

@ -89,7 +89,9 @@
</form>
{/if}
{#if adventures.length != 0}
<button on:click={async () => { window.location.href = exportData(); }}>Save as File</button>
{/if}
<style>
.addsomething {