Files
UNIT3D-Community-Edition/resources/views/livewire/bookmark-button.blade.php
Roardom d0a3c2293a fix: broken torrent bookmark button
This used to work fine, and we didn't recently update livewire, so not sure what happened to this. Hacky workaround, but at least it works now.
2025-12-06 02:43:35 +00:00

18 lines
638 B
PHP

<button
@if ($this->isBookmarked)
wire:click="destroy({{ $torrent->id }})"
class="form__button form__button--filled form__button--centered"
@else
wire:click="store({{ $torrent->id }})"
class="form__button form__button--outlined form__button--centered"
@endif
>
@if ($this->isBookmarked)
<i class="{{ config('other.font-awesome') }} fa-bookmark-slash"></i>
{{ __('torrent.unbookmark') }} ({{ $bookmarksCount }})
@else
<i class="{{ config('other.font-awesome') }} fa-bookmark"></i>
{{ __('torrent.bookmark') }} ({{ $bookmarksCount }})
@endif
</button>