mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 14:59:36 +02:00
refactor: Add umami event tracking to adventure card buttons
This commit is contained in:
parent
053c1ff681
commit
42f6c84633
3 changed files with 18 additions and 4 deletions
|
@ -242,8 +242,11 @@
|
||||||
><Plus class="w-6 h-6" />Add to Collection</button
|
><Plus class="w-6 h-6" />Add to Collection</button
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
<button class="btn btn-warning" on:click={deleteAdventure}
|
<button
|
||||||
><TrashCan class="w-6 h-6" />Delete</button
|
id="delete_adventure"
|
||||||
|
data-umami-event="Delete Adventure"
|
||||||
|
class="btn btn-warning"
|
||||||
|
on:click={deleteAdventure}><TrashCan class="w-6 h-6" />Delete</button
|
||||||
>
|
>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -332,7 +332,13 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/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 -->
|
<!-- if there is a button in form, it will close the modal -->
|
||||||
<button class="btn mt-4" on:click={close}>Close</button>
|
<button class="btn mt-4" on:click={close}>Close</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -384,7 +384,12 @@
|
||||||
class="input input-bordered w-full max-w-xs mt-1"
|
class="input input-bordered w-full max-w-xs mt-1"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary mr-4 mt-4">Create</button>
|
<button
|
||||||
|
id="new_adventure"
|
||||||
|
data-umami-event="Create new Adventure"
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary mr-4 mt-4">Create</button
|
||||||
|
>
|
||||||
<button type="button" class="btn mt-4" on:click={close}>Close</button>
|
<button type="button" class="btn mt-4" on:click={close}>Close</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue