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

feat: Update NoteModal component to allow editing and submitting notes

This commit is contained in:
Sean Morley 2024-08-04 13:57:33 -04:00
parent 8dd44e23a6
commit 12595483fc

View file

@ -113,7 +113,7 @@
<p class="font-semibold text-md mb-2">Editing note {initialName}</p> <p class="font-semibold text-md mb-2">Editing note {initialName}</p>
{/if} {/if}
{#if user?.pk == note?.user_id} {#if (note && user?.pk == note?.user_id) || !note}
<form on:submit|preventDefault> <form on:submit|preventDefault>
<div class="form-control mb-2"> <div class="form-control mb-2">
<label for="name">Name</label> <label for="name">Name</label>