mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Manage Tracks not showing whether language/quality meets cutoff
This commit is contained in:
parent
5bca13b21f
commit
7860f9ee81
3 changed files with 12 additions and 4 deletions
|
@ -200,26 +200,30 @@ export const actionHandlers = handleThunks({
|
|||
|
||||
dispatch(set({ section, isSaving: true }));
|
||||
|
||||
const data = {
|
||||
const requestData = {
|
||||
trackFileIds
|
||||
};
|
||||
|
||||
if (quality) {
|
||||
data.quality = quality;
|
||||
requestData.quality = quality;
|
||||
}
|
||||
|
||||
const promise = createAjaxRequest({
|
||||
url: '/trackFile/editor',
|
||||
method: 'PUT',
|
||||
dataType: 'json',
|
||||
data: JSON.stringify(data)
|
||||
data: JSON.stringify(requestData)
|
||||
}).request;
|
||||
|
||||
promise.done(() => {
|
||||
promise.done((data) => {
|
||||
dispatch(batchActions([
|
||||
...trackFileIds.map((id) => {
|
||||
const props = {};
|
||||
|
||||
const trackFile = data.find((file) => file.id === id);
|
||||
|
||||
props.qualityCutoffNotMet = trackFile.qualityCutoffNotMet;
|
||||
|
||||
if (quality) {
|
||||
props.quality = quality;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue