Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: show torrent comment #292
  • Loading branch information
WDaan committed Aug 29, 2021
1 parent c8ffce5 commit 4c3c2d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/components/Modals/TorrentDetailModal/Tabs/Info.vue
Expand Up @@ -142,12 +142,12 @@
{{ createdBy }}
</td>
</tr>
<tr v-if="torrent.comment">
<tr v-if="comment">
<td :class="commonStyle">
Comments
</td>
<td>
{{ torrent.comment }}
{{ comment }}
</td>
</tr>

Expand Down Expand Up @@ -232,7 +232,8 @@ export default {
data() {
return {
commonStyle: 'caption',
createdBy: null
createdBy: null,
comment: null
}
},
computed: {
Expand All @@ -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
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/models/Torrent.js
Expand Up @@ -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
Expand Down

0 comments on commit 4c3c2d3

Please sign in to comment.