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:
parent
bd5e1a813b
commit
2f180a204b
2 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue