From 83a13fb8e5cfd42c88b4e9fce9d4545b0cd34a77 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Fri, 26 May 2017 15:05:13 +0800 Subject: [PATCH] fix(status): torrent tag with type of TVSerial --- .../client/controllers/status/uploaded.client.controller.js | 4 ++-- modules/users/client/views/status/uploaded.client.view.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/users/client/controllers/status/uploaded.client.controller.js b/modules/users/client/controllers/status/uploaded.client.controller.js index 7c86ea91..1853843f 100644 --- a/modules/users/client/controllers/status/uploaded.client.controller.js +++ b/modules/users/client/controllers/status/uploaded.client.controller.js @@ -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; diff --git a/modules/users/client/views/status/uploaded.client.view.html b/modules/users/client/views/status/uploaded.client.view.html index 4ae05ac1..f1d4ba70 100644 --- a/modules/users/client/views/status/uploaded.client.view.html +++ b/modules/users/client/views/status/uploaded.client.view.html @@ -1,6 +1,6 @@
-
-
+
+
    - {{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}} + {{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item) + '.' + t | translate}}