feat(status): load torrent_status data

This commit is contained in:
OldHawk
2017-05-26 14:33:05 +08:00
parent e162d8e48a
commit be03dc0cb6
5 changed files with 22 additions and 1 deletions

View File

@@ -74,7 +74,8 @@
vm.getUploadedTorrend = function () {
TorrentsService.get({
userid: vm.user._id,
torrent_type: 'all'
torrent_type: 'all',
torrent_status: 'all'
}, function (items) {
vm.uploadedList = items.rows;
vm.buildPager();

View File

@@ -59,6 +59,10 @@
<span class="label label-ttype label-primary" ng-click="$event.stopPropagation();">
{{'TORRENT_TYPE_LABEL.' + item.torrent_type.toUpperCase() | translate}}
</span>
<span class="label label-tstatus label-danger" ng-show="item.torrent_status == 'new'"
ng-click="$event.stopPropagation();">
{{'TORRENT_STATUS_LABEL.' + item.torrent_status.toUpperCase() | translate}}
</span>
<span class="label label-release label-warning" ng-show="item.resource_detail_info.release_date"
ng-click="$event.stopPropagation();">
{{ item.resource_detail_info.release_date}}