mirror of https://github.com/Radarr/Radarr
Fixed: Sorting of Queue time left
This commit is contained in:
parent
f7e21ec2a4
commit
1c892d7357
|
@ -1,4 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
import { createAction } from 'redux-actions';
|
||||
import { batchActions } from 'redux-batched-actions';
|
||||
import { sortDirections } from 'Helpers/Props';
|
||||
|
@ -142,6 +143,11 @@ export const defaultState = {
|
|||
isModifiable: false
|
||||
}
|
||||
]
|
||||
},
|
||||
sortPredicates: {
|
||||
estimatedCompletionTime: function(item, direction) {
|
||||
return moment.duration(item.timeleft).asMilliseconds();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue