refactor(ui): replace translation key with direct character for remove action

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-07-12 16:49:00 -04:00
parent e8a3495c70
commit 1de84dbd0c
13 changed files with 14 additions and 29 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ const SelectedPlaylistChip = ({ playlist, onRemove }) => {
onClick={() => onRemove(playlist)}
title={translate('resources.playlist.actions.removeFromSelection')}
>
{translate('resources.playlist.actions.removeSymbol')}
{'×'}
</IconButton>
</span>
)
+2 -6
View File
@@ -205,9 +205,7 @@ describe('SelectPlaylistInput', () => {
})
// Find and click the remove button (translation key)
const removeButton = screen.getByText(
'resources.playlist.actions.removeSymbol',
)
const removeButton = screen.getByText('×')
fireEvent.click(removeButton)
await waitFor(() => {
@@ -480,9 +478,7 @@ describe('SelectPlaylistInput', () => {
})
// Remove the first selected playlist via chip
const removeButtons = screen.getAllByText(
'resources.playlist.actions.removeSymbol',
)
const removeButtons = screen.getAllByText('×')
fireEvent.click(removeButtons[0])
await waitFor(() => {
+1 -2
View File
@@ -207,8 +207,7 @@
"makePrivate": "Make Private",
"searchOrCreate": "Search playlists or type to create new...",
"pressEnterToCreate": "Press Enter to create new playlist",
"removeFromSelection": "Remove from selection",
"removeSymbol": "×"
"removeFromSelection": "Remove from selection"
},
"message": {
"duplicate_song": "Add duplicated songs",