From e319f0c0fc9f74cb06f115cfd5cf889b6fb97ff5 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Tue, 15 May 2018 11:17:37 +0800 Subject: [PATCH] feat(torrents): show review button in detail page admin panel --- .../controllers/torrent-info.client.controller.js | 14 ++++++++++++++ .../client/views/view-torrent.client.view.html | 3 +++ 2 files changed, 17 insertions(+) diff --git a/modules/torrents/client/controllers/torrent-info.client.controller.js b/modules/torrents/client/controllers/torrent-info.client.controller.js index c14100e4..0c8cbd9d 100644 --- a/modules/torrents/client/controllers/torrent-info.client.controller.js +++ b/modules/torrents/client/controllers/torrent-info.client.controller.js @@ -146,6 +146,20 @@ }); }; + /** + * reviewedTorrentStatus + * @param item + */ + vm.reviewedTorrentStatus = function () { + vm.torrentLocalInfo.$setReviewedStatus(function (res) { + mtDebug.info(res); + vm.torrentLocalInfo = res; + NotifycationService.showSuccessNotify('TORRENT_SETREVIEWED_SUCCESSFULLY'); + }, function (res) { + NotifycationService.showErrorNotify(res.data.message, 'TORRENT_SETREVIEWED_ERROR'); + }); + }; + /** * toggleHnR */ diff --git a/modules/torrents/client/views/view-torrent.client.view.html b/modules/torrents/client/views/view-torrent.client.view.html index 54467ceb..c179833e 100644 --- a/modules/torrents/client/views/view-torrent.client.view.html +++ b/modules/torrents/client/views/view-torrent.client.view.html @@ -1043,6 +1043,9 @@ ng-click="vm.updateTorrent();"> {{ 'ADMIN_BASIC_UPDATE' | translate}} +