support task order by upload speed in task list page

master
MaysWind 2016-06-11 18:28:00 +08:00
parent 5851469cc0
commit 2164736834
4 changed files with 10 additions and 0 deletions

View File

@ -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>

View File

@ -19,6 +19,7 @@
"By Completed Percent": "按进度",
"By Remain Time": "按剩余时间",
"By Download Speed": "按下载速度",
"By Upload Speed": "按上传速度",
"Download": "下载",
"Upload": "上传",
"Downloading": "正在下载",

View File

@ -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',

View File

@ -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;
}