mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
WebUI: Add missing columns in transfer list
* Incomplete Save Path * Info Hash v1 * Info Hash v2 PR #21158.
This commit is contained in:
parent
62c5f41f39
commit
d0af02cc17
1 changed files with 19 additions and 0 deletions
|
@ -928,6 +928,9 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
this.newColumn("seen_complete", "", "QBT_TR(Last Seen Complete)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
this.newColumn("seen_complete", "", "QBT_TR(Last Seen Complete)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
this.newColumn("last_activity", "", "QBT_TR(Last Activity)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
this.newColumn("last_activity", "", "QBT_TR(Last Activity)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
this.newColumn("availability", "", "QBT_TR(Availability)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
this.newColumn("availability", "", "QBT_TR(Availability)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
|
this.newColumn("download_path", "", "QBT_TR(Incomplete Save Path)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
|
this.newColumn("infohash_v1", "", "QBT_TR(Info Hash v1)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
|
this.newColumn("infohash_v2", "", "QBT_TR(Info Hash v2)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
this.newColumn("reannounce", "", "QBT_TR(Reannounce In)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
this.newColumn("reannounce", "", "QBT_TR(Reannounce In)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
this.newColumn("private", "", "QBT_TR(Private)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
this.newColumn("private", "", "QBT_TR(Private)QBT_TR[CONTEXT=TransferListModel]", 100, false);
|
||||||
|
|
||||||
|
@ -1307,6 +1310,22 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
td.title = value;
|
td.title = value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// infohash_v1
|
||||||
|
this.columns["infohash_v1"].updateTd = function(td, row) {
|
||||||
|
const sourceInfohashV1 = this.getRowValue(row);
|
||||||
|
const infohashV1 = (sourceInfohashV1 !== "") ? sourceInfohashV1 : "QBT_TR(N/A)QBT_TR[CONTEXT=TransferListDelegate]";
|
||||||
|
td.textContent = infohashV1;
|
||||||
|
td.title = infohashV1;
|
||||||
|
};
|
||||||
|
|
||||||
|
// infohash_v2
|
||||||
|
this.columns["infohash_v2"].updateTd = function(td, row) {
|
||||||
|
const sourceInfohashV2 = this.getRowValue(row);
|
||||||
|
const infohashV2 = (sourceInfohashV2 !== "") ? sourceInfohashV2 : "QBT_TR(N/A)QBT_TR[CONTEXT=TransferListDelegate]";
|
||||||
|
td.textContent = infohashV2;
|
||||||
|
td.title = infohashV2;
|
||||||
|
};
|
||||||
|
|
||||||
// reannounce
|
// reannounce
|
||||||
this.columns["reannounce"].updateTd = function(td, row) {
|
this.columns["reannounce"].updateTd = function(td, row) {
|
||||||
const time = window.qBittorrent.Misc.friendlyDuration(this.getRowValue(row));
|
const time = window.qBittorrent.Misc.friendlyDuration(this.getRowValue(row));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue