sorting file supports by selected status

master
MaysWind 2019-04-07 14:45:57 +08:00
parent 74812e9ba6
commit 5c4acf8616
5 changed files with 11 additions and 0 deletions

View File

@ -43,6 +43,7 @@ Click to view task detail=点击查看任务详情
By File Name=按文件名
By File Size=按文件大小
By Progress=按进度
By Selected Status=按选中状态
By Remain Time=按剩余时间
By Download Speed=按下载速度
By Upload Speed=按上传速度

View File

@ -43,6 +43,7 @@ Click to view task detail=點選檢視工作詳情
By File Name=依檔名
By File Size=依檔案大小
By Progress=依進度
By Selected Status=依選中狀態
By Remain Time=依剩餘時間
By Download Speed=依下載速度
By Upload Speed=依上傳速度

View File

@ -47,6 +47,7 @@
'By File Name': 'By File Name',
'By File Size': 'By File Size',
'By Progress': 'By Progress',
'By Selected Status': 'By Selected Status',
'By Remain Time': 'By Remain Time',
'By Download Speed': 'By Download Speed',
'By Upload Speed': 'By Upload Speed',

View File

@ -21,6 +21,8 @@
return $filter('orderBy')(array, ['length'], orderType.reverse);
} else if (orderType.type === 'percent') {
return $filter('orderBy')(array, ['completePercent'], orderType.reverse);
} else if (orderType.type === 'selected') {
return $filter('orderBy')(array, ['selected'], orderType.reverse);
} else {
return array;
}

View File

@ -418,6 +418,12 @@
<i class="fa fa-fw" ng-class="{'fa-check': isSetFileListDisplayOrder('size')}"></i>
</a>
</li>
<li>
<a class="pointer-cursor" ng-click="changeFileListDisplayOrder('selected:desc')">
<span translate>By Selected Status</span>
<i class="fa fa-fw" ng-class="{'fa-check': isSetFileListDisplayOrder('selected')}"></i>
</a>
</li>
</ul>
</li>
</ul>