From 8cde29ac63b84aeb5bf43a08d9c439bfcb12aae3 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Thu, 15 Jan 2026 01:24:46 +0530 Subject: [PATCH] fix(05-05): update JKPopupMediaControls to use selectDownloadState - Replaced non-existent selectDownloadingJamTrack with selectDownloadState - Computed downloadingJamTrack from downloadState.state - Fixes import error preventing compilation --- jam-ui/src/components/popups/JKPopupMediaControls.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jam-ui/src/components/popups/JKPopupMediaControls.js b/jam-ui/src/components/popups/JKPopupMediaControls.js index 3f0fe2a24..0290732af 100644 --- a/jam-ui/src/components/popups/JKPopupMediaControls.js +++ b/jam-ui/src/components/popups/JKPopupMediaControls.js @@ -13,7 +13,7 @@ import { selectJamTracks, selectRecordedTracks, selectJamTrackState, - selectDownloadingJamTrack + selectDownloadState } from '../../store/features/mediaSlice'; import { selectShowMyMixes, @@ -34,13 +34,16 @@ const JKPopupMediaControls = ({ onClose }) => { const recordedTracks = useSelector(selectRecordedTracks); const metronome = useSelector(selectMetronome); const jamTrackState = useSelector(selectJamTrackState); - const downloadingJamTrack = useSelector(selectDownloadingJamTrack); + const downloadState = useSelector(selectDownloadState); const showMyMixes = useSelector(selectShowMyMixes); const showCustomMixes = useSelector(selectShowCustomMixes); const editingMixdownId = useSelector(selectEditingMixdownId); const creatingMixdown = useSelector(selectCreatingMixdown); const createMixdownErrors = useSelector(selectCreateMixdownErrors); + // Compute if JamTrack is currently downloading + const downloadingJamTrack = downloadState.state === 'downloading' || downloadState.state === 'checking' || downloadState.state === 'keying'; + // Redux actions const { closeMedia,