Added affiliate parameters to scene URL.

This commit is contained in:
2024-06-22 22:51:57 +02:00
parent c2edf72081
commit 9ce9cfbb0c
8 changed files with 97 additions and 13 deletions

View File

@@ -92,7 +92,7 @@
</div>
<Link
:href="scene.url"
:href="scene.watchUrl"
:title="scene.date ? formatDate(scene.date.toISOString(), 'y-MM-dd hh:mm') : `Release date unknown, added ${formatDate(scene.createdAt, 'y-MM-dd')}`"
target="_blank"
class="date nolink"
@@ -142,10 +142,13 @@
-->
<Link
v-if="scene.url"
:href="scene.url"
v-if="scene.watchUrl"
:href="scene.watchUrl"
target="_blank"
class="button button-primary watch nolink"
:data-umami-event="scene.affiliate ? 'watch-click-aff' : 'watch-click'"
:data-umami-event-aff-id="scene.affiliate?.id"
:data-umami-event-scene-id="scene.id"
>Watch full video</Link>
</div>
</div>