Local media server bugfixes.

This commit is contained in:
Patrick Fic
2022-05-13 09:34:19 -07:00
parent cdcfea988f
commit 90600cdff4
6 changed files with 101 additions and 6 deletions

View File

@@ -26,6 +26,23 @@ const mediaReducer = (state = INITIAL_STATE, action) => {
return p;
}),
};
case MediaActionTypes.SELECT_ALL_MEDIA_FOR_JOB:
return {
...state,
[action.payload.jobid]: state[action.payload.jobid].map((p) => {
p.isSelected = true;
return p;
}),
};
case MediaActionTypes.DESELECT_ALL_MEDIA_FOR_JOB:
return {
...state,
[action.payload.jobid]: state[action.payload.jobid].map((p) => {
p.isSelected = false;
return p;
}),
};
default:
return state;
}