Add Status column to webui (addresses #6815) (#7032)

* Add Status column to webui (addresses #6815)
This commit is contained in:
Tom Piccirello
2017-07-17 02:26:52 -04:00
committed by Mike Tzou
parent 962e5a8f3d
commit 11b44407af
3 changed files with 40 additions and 30 deletions

View File

@@ -312,6 +312,8 @@ window.addEvent('load', function () {
for (var key in response['torrents']) {
response['torrents'][key]['hash'] = key;
response['torrents'][key]['rowId'] = key;
if (response['torrents'][key]['state'])
response['torrents'][key]['status'] = response['torrents'][key]['state'];
torrentsTable.updateRowData(response['torrents'][key]);
if (addTorrentToCategoryList(response['torrents'][key]))
update_categories = true;