mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Merge pull request #8304 from Piccirello/webui-torrent-status
Remove default case, fix #8302
This commit is contained in:
commit
a56262401b
1 changed files with 3 additions and 3 deletions
|
@ -776,7 +776,7 @@ var TorrentsTable = new Class({
|
|||
// state_icon
|
||||
this.columns['state_icon'].updateTd = function (td, row) {
|
||||
var state = this.getRowValue(row);
|
||||
|
||||
// normalize states
|
||||
switch (state) {
|
||||
case "forcedDL":
|
||||
case "metaDL":
|
||||
|
@ -805,11 +805,11 @@ var TorrentsTable = new Class({
|
|||
state = "checking";
|
||||
break;
|
||||
case "unknown":
|
||||
case "error":
|
||||
case "missingFiles":
|
||||
default:
|
||||
state = "error";
|
||||
break;
|
||||
default:
|
||||
break; // do nothing
|
||||
}
|
||||
|
||||
var img_path = 'images/skin/' + state + '.png';
|
||||
|
|
Loading…
Reference in a new issue