Skip to content

Commit

Permalink
feat: label formulaire dépendant création / mise à jour
Browse files Browse the repository at this point in the history
  • Loading branch information
jillro committed Jul 22, 2024
1 parent 8e60355 commit 0d8a603
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/SubscribeComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@
{#await getData()}
<p>Chargement...</p>
{:then data}
<Form bind:success initialData={data} {token} {apiServer} />
<Form
bind:success
initialData={data}
{token}
{apiServer}
sendLabel={uid ? "Mettre à jour" : "S'inscrire"}
/>
{:catch error}
<p>Une erreur est survenue. {error.message}</p>
{/await}
Expand Down

0 comments on commit 0d8a603

Please sign in to comment.