fix(status): torrent tag with type of TVSerial

This commit is contained in:
OldHawk
2017-05-26 15:05:13 +08:00
parent be03dc0cb6
commit 83a13fb8e5
2 changed files with 5 additions and 5 deletions

View File

@@ -91,12 +91,12 @@
* @param tag: tag name
* @returns {*}
*/
vm.getTagTitle = function (tag) {
vm.getTagTitle = function (tag, item) {
var tmp = tag;
var find = false;
var r = undefined;
switch (vm.torrentType) {
switch (item.torrent_type) {
case 'tvserial':
r = vm.resourcesTags.tv;
break;

View File

@@ -1,6 +1,6 @@
<section ng-controller="UploadedController as vm" ng-init="vm.getUploadedTorrend();">
<div class="row margin-top-50">
<div class="col-md-12 torrent-list" id="top_of_torrent_list">
<div class="row margin-top-20">
<div class="col-md-12 torrent-list" id="top_of_torrent_list" ng-show="vm.pagedItems">
<div class="pagination-div-top">
<ul uib-pagination boundary-links="true" max-size="8" items-per-page="vm.itemsPerPage" total-items="vm.filterLength"
@@ -81,7 +81,7 @@
<span ng-repeat="t in item.torrent_tags">
<span class="label label-tag" ng-class="{'used': vm.searchTags.indexOf(t) !== -1}"
ng-click="$event.stopPropagation();">
{{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}}
{{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item) + '.' + t | translate}}
</span>
</span>
</div>