refactor(ui): replace translation key with direct character for remove action
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -226,7 +226,7 @@ const SelectedPlaylistChip = ({ playlist, onRemove }) => {
|
||||
onClick={() => onRemove(playlist)}
|
||||
title={translate('resources.playlist.actions.removeFromSelection')}
|
||||
>
|
||||
{translate('resources.playlist.actions.removeSymbol')}
|
||||
{'×'}
|
||||
</IconButton>
|
||||
</span>
|
||||
)
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user