mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-12-23 22:58:17 -05:00
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;
|
||||
|
||||
function remove() {
|
||||
dispatch('remove', name);
|
||||
dispatch('remove', id);
|
||||
}
|
||||
function edit() {
|
||||
dispatch('edit', id)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user