feat: Add status text to like button when hover event triggers (#1789)

Signed-off-by: Kay Wei <weikaiii@sina.cn>
This commit is contained in:
Kay W 2022-09-09 12:45:22 +08:00 committed by GitHub
parent b589f82b6c
commit 9fcb6da960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 1 deletions

View File

@ -50,7 +50,11 @@
</div>
<div class="like-button">
<button-icon
:title="$t('player.like')"
:title="
player.isCurrentTrackLiked
? $t('player.unlike')
: $t('player.like')
"
@click.native="likeATrack(player.currentTrack.id)"
>
<svg-icon

View File

@ -102,6 +102,7 @@ export default {
},
player: {
like: 'Like',
unlike: 'Unlike',
previous: 'Previous Song',
next: 'Next Song',
repeat: 'Repeat',

View File

@ -98,6 +98,7 @@ export default {
},
player: {
like: 'Beğen',
unlike: 'Aksine',
previous: 'Önceki Müzik',
next: 'Sonraki Müzik',
repeat: 'Tekrarla',

View File

@ -103,6 +103,7 @@ export default {
},
player: {
like: '喜欢',
unlike: '取消喜欢',
previous: '上一首',
next: '下一首',
repeat: '循环播放',

View File

@ -99,6 +99,7 @@ export default {
},
player: {
like: '喜歡',
unlike: '取消喜歡',
previous: '上一首',
next: '下一首',
repeat: '循環播放',