From aa8ecc0de2fafb18c13e6a4e78f1282348ec41e3 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 4 Jul 2016 23:01:44 +0800 Subject: [PATCH] fix bug --- src/scripts/controllers/task-detail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/controllers/task-detail.js b/src/scripts/controllers/task-detail.js index dbcc879..7916324 100644 --- a/src/scripts/controllers/task-detail.js +++ b/src/scripts/controllers/task-detail.js @@ -32,7 +32,7 @@ var task = response.task; - if (!task.bittorrent) { + if (task.status != 'active' || !task.bittorrent) { if (tabOrders.indexOf('btpeers') >= 0) { tabOrders.splice(tabOrders.indexOf('btpeers'), 1); }