sorting file supports by selected status

This commit is contained in:
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 Name=按文件名
By File Size=按文件大小 By File Size=按文件大小
By Progress=按进度 By Progress=按进度
By Selected Status=按选中状态
By Remain Time=按剩余时间 By Remain Time=按剩余时间
By Download Speed=按下载速度 By Download Speed=按下载速度
By Upload Speed=按上传速度 By Upload Speed=按上传速度

View file

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

View file

@ -47,6 +47,7 @@
'By File Name': 'By File Name', 'By File Name': 'By File Name',
'By File Size': 'By File Size', 'By File Size': 'By File Size',
'By Progress': 'By Progress', 'By Progress': 'By Progress',
'By Selected Status': 'By Selected Status',
'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', 'By Upload Speed': 'By Upload Speed',

View file

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

View file

@ -418,6 +418,12 @@
<i class="fa fa-fw" ng-class="{'fa-check': isSetFileListDisplayOrder('size')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetFileListDisplayOrder('size')}"></i>
</a> </a>
</li> </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> </ul>
</li> </li>
</ul> </ul>