-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This must have been broken for a long time. This also fixes the issue when ticking checkboxes too quickly the state being reset. It required both making sure `small-bookmark-button.blade.php` was surrounded by an element completely, as well as adding wire:key to the inner row loop. Adding wire:key to the component itself doesn't work because the attributes aren't passed through... fixes #3818
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
@if ($this->isBookmarked) | ||
<button | ||
<button | ||
@if ($this->isBookmarked) | ||
wire:click="destroy({{ $torrent->id }})" | ||
class="form__standard-icon-button" | ||
title="Unbookmark" | ||
> | ||
<i class="{{ config('other.font-awesome') }} fa-bookmark-slash"></i> | ||
</button> | ||
@else | ||
<button | ||
@else | ||
wire:click="store({{ $torrent->id }})" | ||
class="form__standard-icon-button" | ||
title="Bookmark" | ||
> | ||
@endif | ||
> | ||
@if ($this->isBookmarked) | ||
<i class="{{ config('other.font-awesome') }} fa-bookmark-slash"></i> | ||
@else | ||
<i class="{{ config('other.font-awesome') }} fa-bookmark"></i> | ||
</button> | ||
@endif | ||
@endif | ||
</button> |