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>
|
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('dspeed')}"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"By Completed Percent": "按进度",
|
"By Completed Percent": "按进度",
|
||||||
"By Remain Time": "按剩余时间",
|
"By Remain Time": "按剩余时间",
|
||||||
"By Download Speed": "按下载速度",
|
"By Download Speed": "按下载速度",
|
||||||
|
"By Upload Speed": "按上传速度",
|
||||||
"Download": "下载",
|
"Download": "下载",
|
||||||
"Upload": "上传",
|
"Upload": "上传",
|
||||||
"Downloading": "正在下载",
|
"Downloading": "正在下载",
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
'By Completed Percent': 'By Completed Percent',
|
'By Completed Percent': 'By Completed Percent',
|
||||||
'By Remain Time': 'By Remain Time',
|
'By Remain Time': 'By Remain Time',
|
||||||
'By Download Speed': 'By Download Speed',
|
'By Download Speed': 'By Download Speed',
|
||||||
|
'By Upload Speed': 'By Upload Speed',
|
||||||
'Download': 'Download',
|
'Download': 'Download',
|
||||||
'Upload': 'Upload',
|
'Upload': 'Upload',
|
||||||
'Downloading': 'Downloading',
|
'Downloading': 'Downloading',
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
return orderByFilter(array, ['idle', 'remainTime', 'remainLength'], orderType.reverse);
|
return orderByFilter(array, ['idle', 'remainTime', 'remainLength'], orderType.reverse);
|
||||||
} else if (orderType.type == 'dspeed') {
|
} else if (orderType.type == 'dspeed') {
|
||||||
return orderByFilter(array, ['downloadSpeed'], orderType.reverse);
|
return orderByFilter(array, ['downloadSpeed'], orderType.reverse);
|
||||||
|
} else if (orderType.type == 'uspeed') {
|
||||||
|
return orderByFilter(array, ['uploadSpeed'], orderType.reverse);
|
||||||
} else {
|
} else {
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue