mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 12:45:17 +02:00
feat: Pass collection data to adventure, transportation, lodging, and checklist components
This commit is contained in:
parent
6eebd5b70a
commit
a3cd940065
1 changed files with 5 additions and 0 deletions
|
@ -998,6 +998,7 @@
|
||||||
on:edit={editAdventure}
|
on:edit={editAdventure}
|
||||||
on:delete={deleteAdventure}
|
on:delete={deleteAdventure}
|
||||||
{adventure}
|
{adventure}
|
||||||
|
{collection}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -1013,6 +1014,7 @@
|
||||||
transportationToEdit = event.detail;
|
transportationToEdit = event.detail;
|
||||||
isShowingTransportationModal = true;
|
isShowingTransportationModal = true;
|
||||||
}}
|
}}
|
||||||
|
{collection}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -1028,6 +1030,7 @@
|
||||||
on:delete={(event) => {
|
on:delete={(event) => {
|
||||||
notes = notes.filter((n) => n.id != event.detail);
|
notes = notes.filter((n) => n.id != event.detail);
|
||||||
}}
|
}}
|
||||||
|
{collection}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -1040,6 +1043,7 @@
|
||||||
lodging = lodging.filter((t) => t.id != event.detail);
|
lodging = lodging.filter((t) => t.id != event.detail);
|
||||||
}}
|
}}
|
||||||
on:edit={editLodging}
|
on:edit={editLodging}
|
||||||
|
{collection}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -1055,6 +1059,7 @@
|
||||||
checklistToEdit = event.detail;
|
checklistToEdit = event.detail;
|
||||||
isShowingChecklistModal = true;
|
isShowingChecklistModal = true;
|
||||||
}}
|
}}
|
||||||
|
{collection}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue