From 4c3c2d36d713c5f5fda2393a4cfc14b68b09244f Mon Sep 17 00:00:00 2001 From: Daan Wijns Date: Sun, 29 Aug 2021 09:33:51 +0200 Subject: [PATCH] fix: show torrent comment #292 --- src/components/Modals/TorrentDetailModal/Tabs/Info.vue | 8 +++++--- src/models/Torrent.js | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Modals/TorrentDetailModal/Tabs/Info.vue b/src/components/Modals/TorrentDetailModal/Tabs/Info.vue index b131f7b754..eb60d093c3 100644 --- a/src/components/Modals/TorrentDetailModal/Tabs/Info.vue +++ b/src/components/Modals/TorrentDetailModal/Tabs/Info.vue @@ -142,12 +142,12 @@ {{ createdBy }} - + Comments - {{ torrent.comment }} + {{ comment }} @@ -232,7 +232,8 @@ export default { data() { return { commonStyle: 'caption', - createdBy: null + createdBy: null, + comment: null } }, computed: { @@ -248,6 +249,7 @@ export default { async getTorrentProperties() { const props = await qbit.getTorrentProperties(this.hash) this.createdBy = props.created_by || null + this.comment = props.comment || null } } } diff --git a/src/models/Torrent.js b/src/models/Torrent.js index 6c3bcfd2f5..6a1e49d32f 100644 --- a/src/models/Torrent.js +++ b/src/models/Torrent.js @@ -22,7 +22,6 @@ export default class Torrent { this.tags = data.tags.length > 0 ? data.tags.split(', ').map(t => t.trim()) : null this.category = data.category this.tracker = data.tracker - this.comment = data.comment this.f_l_piece_prio = data.f_l_piece_prio this.seq_dl = data.seq_dl this.auto_tmm = data.auto_tmm