1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-21 22:09:36 +02:00

refactor: Add umami event tracking to adventure card buttons

This commit is contained in:
Sean Morley 2024-07-30 08:34:26 -04:00
parent 053c1ff681
commit 42f6c84633
3 changed files with 18 additions and 4 deletions

View file

@ -332,7 +332,13 @@
</div>
{/if}
<button type="submit" class="btn btn-primary mr-4 mt-4" on:click={submit}>Edit</button>
<button
type="submit"
id="edit_adventure"
data-umami-event="Edit Adventure"
class="btn btn-primary mr-4 mt-4"
on:click={submit}>Edit</button
>
<!-- if there is a button in form, it will close the modal -->
<button class="btn mt-4" on:click={close}>Close</button>
</form>