mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
More responsive like/unlike
This commit is contained in:
parent
3e747101a9
commit
7c4745fe4a
1 changed files with 4 additions and 3 deletions
|
@ -208,9 +208,10 @@
|
|||
return;
|
||||
}
|
||||
|
||||
favoriteStore.toggleOne(this.song, () => {
|
||||
this.liked = this.song.liked;
|
||||
});
|
||||
// Mark the song as liked/unliked right away, for a more responsive feel.
|
||||
this.liked = !this.liked;
|
||||
|
||||
favoriteStore.toggleOne(this.song);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue