fix(torrents): fixed torrent tags filter issue in user status page

This commit is contained in:
OldHawk
2018-05-21 23:36:49 +08:00
parent e6834243c2
commit af9cb20fc0
3 changed files with 2 additions and 6 deletions

View File

@@ -48,7 +48,6 @@
} else {
vm.filterType = vm.torrentType;
}
console.log('vm.filterType = ' + vm.filterType);
});
/**
@@ -312,9 +311,6 @@
//if searchKey or searchTags has value, the skip=0
var skip = 0;
console.log(vm.filterType);
console.log(vm.torrentType);
TorrentsService.get({
skip: (p - 1) * vm.torrentItemsPerPage + skip,
limit: vm.torrentItemsPerPage,

View File

@@ -83,7 +83,7 @@
skip: (p - 1) * vm.itemsPerPage,
limit: vm.itemsPerPage,
userid: $state.params.userId,
torrent_type: vm.filterType ? vm.filterType : (vm.torrentType === 'aggregate' ? 'all' : vm.torrentType),
torrent_type: (vm.filterType && vm.filterType !== 'aggregate') ? vm.filterType : (vm.torrentType === 'aggregate' ? 'all' : vm.torrentType),
torrent_status: 'all',
torrent_vip: vm.filterVIP ? vm.filterVIP : undefined,
torrent_rlevel: vm.torrentRLevel,

View File

@@ -83,7 +83,7 @@
skip: (p - 1) * vm.itemsPerPage,
limit: vm.itemsPerPage,
userid: vm.user._id,
torrent_type: vm.filterType ? vm.filterType : (vm.torrentType === 'aggregate' ? 'all' : vm.torrentType),
torrent_type: (vm.filterType && vm.filterType !== 'aggregate') ? vm.filterType : (vm.torrentType === 'aggregate' ? 'all' : vm.torrentType),
torrent_status: 'all',
torrent_vip: vm.filterVIP ? vm.filterVIP : undefined,
torrent_rlevel: vm.torrentRLevel,