Merge remote-tracking branch 'origin/main' into exp/orbit

This commit is contained in:
Psychotoxical
2026-04-24 23:10:56 +02:00
10 changed files with 27 additions and 0 deletions
+2
View File
@@ -16,6 +16,7 @@ const HOME_DISCOVER_SLICE = 20;
export default function Home() {
const homeSections = useHomeStore(s => s.sections);
const activeServerId = useAuthStore(s => s.activeServerId);
const musicLibraryFilterVersion = useAuthStore(s => s.musicLibraryFilterVersion);
const mixMinRatingFilterEnabled = useAuthStore(s => s.mixMinRatingFilterEnabled);
const mixMinRatingAlbum = useAuthStore(s => s.mixMinRatingAlbum);
@@ -70,6 +71,7 @@ export default function Home() {
})();
return () => { cancelled = true; };
}, [
activeServerId,
musicLibraryFilterVersion,
homeSections,
mixMinRatingFilterEnabled,
+17
View File
@@ -734,6 +734,23 @@ export default function Playlists() {
)}
</>
)}
{selectionMode && selectedIds.size > 0 && (() => {
const deletableCount = selectedPlaylists.filter(isPlaylistDeletable).length;
return (
<button
className="btn btn-danger"
onClick={handleDeleteSelected}
disabled={deletableCount === 0}
data-tooltip={deletableCount === selectedIds.size
? undefined
: t('playlists.deleteSelectedPartial', { n: deletableCount, total: selectedIds.size })}
data-tooltip-pos="bottom"
>
<Trash2 size={15} />
{t('playlists.deleteSelected')}
</button>
);
})()}
<button
className={`btn btn-surface${selectionMode ? ' btn-sort-active' : ''}`}
onClick={toggleSelectionMode}