mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Fixed: UI now properly sorts on the Peers column.
This commit is contained in:
@@ -26,7 +26,8 @@ define(
|
|||||||
name : 'protocol',
|
name : 'protocol',
|
||||||
label : 'Source',
|
label : 'Source',
|
||||||
cell : ProtocolCell
|
cell : ProtocolCell
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name : 'age',
|
name : 'age',
|
||||||
label : 'Age',
|
label : 'Age',
|
||||||
cell : AgeCell
|
cell : AgeCell
|
||||||
@@ -66,7 +67,7 @@ define(
|
|||||||
name : 'download',
|
name : 'download',
|
||||||
label : '',
|
label : '',
|
||||||
cell : DownloadReportCell,
|
cell : DownloadReportCell,
|
||||||
sortable : false
|
sortable : true // Is the default sort, which sorts by the internal prioritization logic.
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,14 @@ define(
|
|||||||
return releaseWeight;
|
return releaseWeight;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'download' : { sortKey: 'releaseWeight' }
|
'download' : { sortKey: 'releaseWeight' },
|
||||||
|
'seeders' : { sortValue: function(model) {
|
||||||
|
var seeders = model.get('seeders') || 0;
|
||||||
|
var leechers = model.get('leechers') || 0;
|
||||||
|
|
||||||
|
return seeders * 1000000 + leechers;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchEpisodeReleases: function (episodeId) {
|
fetchEpisodeReleases: function (episodeId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user