feat: Pass collection data to adventure, transportation, lodging, and checklist components
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user