support task order by upload speed in task list page
This commit is contained in:
parent
5851469cc0
commit
2164736834
|
@ -121,6 +121,12 @@
|
|||
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('dspeed')}"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="pointer-cursor" ng-click="changeDisplayOrder('uspeed:desc')">
|
||||
<span translate>By Upload Speed</span>
|
||||
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('uspeed')}"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"By Completed Percent": "按进度",
|
||||
"By Remain Time": "按剩余时间",
|
||||
"By Download Speed": "按下载速度",
|
||||
"By Upload Speed": "按上传速度",
|
||||
"Download": "下载",
|
||||
"Upload": "上传",
|
||||
"Downloading": "正在下载",
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
'By Completed Percent': 'By Completed Percent',
|
||||
'By Remain Time': 'By Remain Time',
|
||||
'By Download Speed': 'By Download Speed',
|
||||
'By Upload Speed': 'By Upload Speed',
|
||||
'Download': 'Download',
|
||||
'Upload': 'Upload',
|
||||
'Downloading': 'Downloading',
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
return orderByFilter(array, ['idle', 'remainTime', 'remainLength'], orderType.reverse);
|
||||
} else if (orderType.type == 'dspeed') {
|
||||
return orderByFilter(array, ['downloadSpeed'], orderType.reverse);
|
||||
} else if (orderType.type == 'uspeed') {
|
||||
return orderByFilter(array, ['uploadSpeed'], orderType.reverse);
|
||||
} else {
|
||||
return array;
|
||||
}
|
||||
|
|
Reference in a new issue