Use proper watchlist keys

This commit is contained in:
Björn Fromme
2021-08-23 20:50:50 +02:00
parent 8c2ecb3e71
commit 7e4de25580
2 changed files with 12 additions and 6 deletions
@@ -20,7 +20,7 @@
<button type="button" <button type="button"
class="px-2" class="px-2"
data-controller="watchlist-toggle" data-controller="watchlist-toggle"
data-watchlist-toggle-key-value="{teaser.product.uid}:{teaser.hotel.uid}" data-watchlist-toggle-key-value="{teaser.hotel.uid}:{teaser.product.uid}"
data-watchlist-toggle-target="ariaLabel" data-watchlist-toggle-target="ariaLabel"
data-action="watchlist-toggle#toggle" data-action="watchlist-toggle#toggle"
data-cooltipz-dir="top" data-cooltipz-dir="top"
@@ -92,11 +92,17 @@
</a> </a>
</div> </div>
</div> </div>
<a href="#" class="teaserbox-watchlist" x-data="watchlistToggle('{hotel.uid}:{product.uid}')" x-bind="trigger"> <button type="button"
<span data-cooltipz-dir="top" x-bind:aria-label="label" role="tooltip"> class="px-2"
<i class="fa fa-plus-circle" x-bind:class="icon"></i> data-controller="watchlist-toggle"
</span> data-watchlist-toggle-key-value="{teaser.hotel.uid}:{teaser.product.uid}"
</a> data-watchlist-toggle-target="ariaLabel"
data-action="watchlist-toggle#toggle"
data-cooltipz-dir="top"
aria-label="auf die Merkliste setzen"
role="tooltip">
<svg class="w-6 h-6 text-white" data-watchlist-toggle-target="icon" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"></path></svg>
</button>
</div> </div>
</f:section> </f:section>