mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-03-17 19:03:13 -05:00
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.
18 lines
638 B
PHP
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>
|