mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-13 14:22:21 +02:00
feat(status): load torrent_status data
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user