mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 20:16:24 +02:00
fix(status): show download percent on torrent item
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
|
||||
function link(scope, element, attrs) {
|
||||
scope.$watch(attrs.torrentProgress, function (p) {
|
||||
if (p && p.length > 0) {
|
||||
var pt = p[0];
|
||||
//mtDebug.info(pt);
|
||||
var pt = Array.isArray(p) ? (p.length > 0 ? p[0] : undefined) : p;
|
||||
if (pt) {
|
||||
mtDebug.info(pt);
|
||||
|
||||
var t_progressbar = ngProgressFactory.createInstance();
|
||||
t_progressbar.setParent(element[0]);
|
||||
|
||||
@@ -276,6 +276,6 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-progress" colspan="6">
|
||||
<div torrent-progress="item.my_peers"></div>
|
||||
<div torrent-progress="item.my_peers || peer"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user