mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-07 16:23:05 +02:00
fix(torrents): fixed torrent tags filter issue in user status page
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user