Skip to content

Commit

Permalink
🐛 Fix ytmdesktop#372
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerluiz committed Sep 10, 2020
1 parent 38548a6 commit 118a674
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"MEDIA_CONTROL_VOLUME_UP": "Increase volume",
"MINIPLAYER": "Miniplayer",
"PREFIX_OPEN_CLOSE": "Open/Close",
"REMOVE_FROM_LIBRARY": "Remove from library",
"SHORTCUT_BUTTONS": "UI Actions",
"SHOW": "Show",
"SKIP_TRACK_MARKED_DISLIKED": "Skip tracks marked as 'Disliked'",
Expand Down
1 change: 1 addition & 0 deletions src/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"MEDIA_CONTROL_VOLUME_UP": "Aumentar volume",
"MINIPLAYER": "Miniplayer",
"PREFIX_OPEN_CLOSE": "Abrir/Fechar",
"REMOVE_FROM_LIBRARY": "Remover da biblioteca",
"SHORTCUT_BUTTONS": "Ações da UI",
"SHOW": "Exibir",
"SKIP_TRACK_MARKED_DISLIKED": "Pular faixas marcadas como 'Não gostei'",
Expand Down
1 change: 1 addition & 0 deletions src/locales/scaffold.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"MEDIA_CONTROL_VOLUME_UP": "Increase volume",
"MINIPLAYER": "Miniplayer",
"PREFIX_OPEN_CLOSE": "Open/Close",
"REMOVE_FROM_LIBRARY": "Remove from library",
"SHORTCUT_BUTTONS": "UI Actions",
"SHOW": "Show",
"SKIP_TRACK_MARKED_DISLIKED": "Skip tracks marked as 'Disliked'",
Expand Down
6 changes: 6 additions & 0 deletions src/utils/injectControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,15 @@ function createBottomPlayerBarContent() {
) {
document.querySelector('#ytmd_add_to_library').innerText =
'check'
document.querySelector(
'#ytmd_add_to_library'
).title = translate('REMOVE_FROM_LIBRARY')
} else {
document.querySelector('#ytmd_add_to_library').innerText =
'library_add'
document.querySelector(
'#ytmd_add_to_library'
).title = translate('ADD_TO_LIBRARY')
}
document
.querySelector('#btn_ytmd_add_to_library')
Expand Down

0 comments on commit 118a674

Please sign in to comment.