Skip to content

🎧 Your Personal Streaming Service

Make AlbumSongs BulkActionsToolbar more responsive

Deluan0c263cf2342e
diff --git a/ui/src/album/AlbumSongs.js b/ui/src/album/AlbumSongs.js
index e09f1e1fd..4b02ff13d 100644
--- a/ui/src/album/AlbumSongs.js
+++ b/ui/src/album/AlbumSongs.js
@@ -145,6 +145,10 @@ const AlbumSongs = (props) => {
defaultOff: ['channels', 'bpm', 'year', 'playCount', 'playDate', 'size'],
})
+ const bulkActionsLabel = isDesktop
+ ? 'ra.action.bulk_actions'
+ : 'ra.action.bulk_actions_mobile'
+
return (
<>
<ListToolbar
@@ -159,7 +163,7 @@ const AlbumSongs = (props) => {
})}
key={version}
>
- <BulkActionsToolbar {...props}>
+ <BulkActionsToolbar {...props} label={bulkActionsLabel}>
<SongBulkActions />
</BulkActionsToolbar>
<SongDatagrid
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index 6ca220061..0e8484e67 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -238,6 +238,7 @@
"add": "Add",
"back": "Go Back",
"bulk_actions": "1 item selected |||| %{smart_count} items selected",
+ "bulk_actions_mobile": "1 |||| %{smart_count}",
"cancel": "Cancel",
"clear_input_value": "Clear value",
"clone": "Clone",