Fix web ui showing total_size rather than total_wanted for Size column

This commit is contained in:
Calum Lind 2013-11-20 19:36:34 +00:00
parent 63329e7199
commit fe1f620731
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ Deluge.Keys = {
/**
* Keys that are used within the torrent grid.
* <pre>['queue', 'name', 'total_size', 'state', 'progress', 'num_seeds',
* <pre>['queue', 'name', 'total_size', 'total_wanted', 'state', 'progress', 'num_seeds',
* 'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate',
* 'upload_payload_rate', 'eta', 'ratio', 'distributed_copies',
* 'is_auto_managed', 'time_added', 'tracker_host', 'save_path',
@ -47,7 +47,7 @@ Deluge.Keys = {
* 'seeds_peers_ratio', 'total_remaining']</pre>
*/
Grid: [
'queue', 'name', 'total_size', 'state', 'progress', 'num_seeds',
'queue', 'name', 'total_size', 'total_wanted', 'state', 'progress', 'num_seeds',
'total_seeds', 'num_peers', 'total_peers', 'download_payload_rate',
'upload_payload_rate', 'eta', 'ratio', 'distributed_copies',
'is_auto_managed', 'time_added', 'tracker_host', 'save_path', 'last_seen_complete',

View File

@ -123,7 +123,7 @@
width: 75,
sortable: true,
renderer: fsize,
dataIndex: 'total_size'
dataIndex: 'total_wanted'
}, {
header: _('Progress'),
width: 150,
@ -274,7 +274,7 @@
fields: [
{name: 'queue', sortType: Deluge.data.SortTypes.asQueuePosition},
{name: 'name', sortType: Deluge.data.SortTypes.asName},
{name: 'total_size', type: 'int'},
{name: 'total_wanted', type: 'int'},
{name: 'state'},
{name: 'progress', type: 'float'},
{name: 'num_seeds', type: 'int'},