mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-12 18:24:58 +08:00
Match webui statuses to gui, closes #7516
This commit is contained in:
parent
e48b97466c
commit
8e9b928b61
@ -811,26 +811,62 @@ var TorrentsTable = new Class({
|
|||||||
|
|
||||||
// status
|
// status
|
||||||
this.columns['status'].updateTd = function (td, row) {
|
this.columns['status'].updateTd = function (td, row) {
|
||||||
var status = this.getRowValue(row);
|
var state = this.getRowValue(row);
|
||||||
if (!status) return;
|
if (!state) return;
|
||||||
|
|
||||||
if ((status === "downloading") || (status === "forcedDL") || (status === "metaDL"))
|
var status;
|
||||||
status = "Downloading";
|
switch (state) {
|
||||||
else if ((status === "stalledDL") || (status === "stalledUP") || (status === "allocating"))
|
case "downloading":
|
||||||
status = "Stalled";
|
status = "Downloading";
|
||||||
else if ((status === "uploading") || (status === "forcedUP"))
|
break;
|
||||||
status = "Uploading";
|
case "stalledDL":
|
||||||
else if (status === "pausedDL")
|
status = "Stalled";
|
||||||
status = "Paused";
|
break;
|
||||||
else if (status === "pausedUP")
|
case "metaDL":
|
||||||
status = "Completed";
|
status = "Downloading metadata";
|
||||||
else if ((status === "queuedDL") || (status === "queuedUP"))
|
break;
|
||||||
status = "Queued";
|
case "forcedDL":
|
||||||
else if ((status === "checkingDL") || (status === "checkingUP") ||
|
status = "[F] Downloading";
|
||||||
(status === "queuedForChecking") || (status === "checkingResumeData"))
|
break;
|
||||||
status = "Checking";
|
case "allocating":
|
||||||
else if ((status === "unknown") || (status === "error") || (status === "missingFiles"))
|
status = "Allocating";
|
||||||
status = "Error";
|
break;
|
||||||
|
case "uploading":
|
||||||
|
case "stalledUP":
|
||||||
|
status = "Seeding";
|
||||||
|
break;
|
||||||
|
case "forcedUP":
|
||||||
|
status = "[F] Seeding";
|
||||||
|
break;
|
||||||
|
case "queuedDL":
|
||||||
|
case "queuedUP":
|
||||||
|
status = "Queued";
|
||||||
|
break;
|
||||||
|
case "checkingDL":
|
||||||
|
case "checkingUP":
|
||||||
|
status = "Checking";
|
||||||
|
break;
|
||||||
|
case "queuedForChecking":
|
||||||
|
status = "Queued for checking";
|
||||||
|
break;
|
||||||
|
case "checkingResumeData":
|
||||||
|
status = "Checking resume data";
|
||||||
|
break;
|
||||||
|
case "pausedDL":
|
||||||
|
status = "Paused";
|
||||||
|
break;
|
||||||
|
case "pausedUP":
|
||||||
|
status = "Completed";
|
||||||
|
break;
|
||||||
|
case "missingFiles":
|
||||||
|
status = "Missing Files";
|
||||||
|
break;
|
||||||
|
case "error":
|
||||||
|
status = "Errored";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
status = "Unknown";
|
||||||
|
}
|
||||||
|
|
||||||
td.set('html', status);
|
td.set('html', status);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user