From fa08f7de43e9a80c4116cfb47d8d17b848ba17b9 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 24 Nov 2011 17:20:37 +0000 Subject: [PATCH] details: add the missing items to the details tab The web interface was missing the Owner and Shared items that have been added to the gtk ui. Add these to bring the web interface up to scratch. --- deluge/ui/web/js/deluge-all/Keys.js | 2 +- deluge/ui/web/js/deluge-all/details/DetailsTab.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Keys.js b/deluge/ui/web/js/deluge-all/Keys.js index 36f549ddb..8d5239fa0 100644 --- a/deluge/ui/web/js/deluge-all/Keys.js +++ b/deluge/ui/web/js/deluge-all/Keys.js @@ -88,7 +88,7 @@ Deluge.Keys = { */ Details: [ 'name', 'save_path', 'total_size', 'num_files', 'message', - 'tracker', 'comment' + 'tracker', 'comment', 'owner', 'shared' ], /** diff --git a/deluge/ui/web/js/deluge-all/details/DetailsTab.js b/deluge/ui/web/js/deluge-all/details/DetailsTab.js index 6130d12f1..4a9ef091f 100644 --- a/deluge/ui/web/js/deluge-all/details/DetailsTab.js +++ b/deluge/ui/web/js/deluge-all/details/DetailsTab.js @@ -35,6 +35,7 @@ Ext.define('Deluge.details.DetailsTab', { extend: 'Ext.Panel', title: _('Details'), + autoScroll: true, fields: {}, queuedItems: {}, oldData: {}, @@ -49,6 +50,8 @@ Ext.define('Deluge.details.DetailsTab', { this.addItem('comment', _('Comment')); this.addItem('status', _('Status')); this.addItem('tracker', _('Tracker')); + this.addItem('owner', _('Owner')); + this.addItem('shared', _('Shared')); }, onRender: function(ct, position) { @@ -100,7 +103,9 @@ Ext.define('Deluge.details.DetailsTab', { files: torrent.num_files, status: torrent.message, tracker: torrent.tracker, - comment: torrent.comment + comment: torrent.comment, + owner: torrent.owner, + shared: torrent.shared }; for (var field in this.fields) {