1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 14:59:36 +02:00

checklists ui

This commit is contained in:
Sean Morley 2024-08-05 21:36:38 -04:00
parent d5f93c5d9d
commit 18ef919a11
6 changed files with 405 additions and 12 deletions

View file

@ -11,7 +11,7 @@
export let checklist: Checklist;
export let user: User | null = null;
function editNote() {
function editChecklist() {
dispatch('edit', checklist);
}
@ -51,7 +51,7 @@
<!-- <button class="btn btn-neutral mb-2" on:click={() => goto(`/notes/${note.id}`)}
><Launch class="w-6 h-6" />Open Details</button
> -->
<button class="btn btn-neutral mb-2" on:click={editNote}>
<button class="btn btn-neutral mb-2" on:click={editChecklist}>
<Launch class="w-6 h-6" />Open
</button>
{#if checklist.user_id == user?.pk}