Skip to content

Commit

Permalink
fix: refresh torrent detail data from store (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadasvosylius authored and WDaan committed Oct 10, 2022
1 parent aac9f04 commit 5270619
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/views/TorrentDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,22 @@
/>
</v-tab-item>
<v-tab-item eager value="trackers">
<Trackers :is-active="tab === 'trackers'" :hash="hash" />
<Trackers
:is-active="tab === 'trackers'"
:hash="hash"
/>
</v-tab-item>
<v-tab-item eager value="peers">
<Peers :is-active="tab === 'peers'" :hash="hash" />
<Peers
:is-active="tab === 'peers'"
:hash="hash"
/>
</v-tab-item>
<v-tab-item eager value="content">
<Content :is-active="tab === 'content'" :hash="hash" />
<Content
:is-active="tab === 'content'"
:hash="hash"
/>
</v-tab-item>
<v-tab-item eager value="tagsAndCategories">
<TagsAndCategories
Expand Down Expand Up @@ -108,6 +117,12 @@ export default {
return this.$route.params.hash
}
},
created() {
this.$store.dispatch('INIT_INTERVALS')
},
destroyed() {
this.$store.commit('REMOVE_INTERVALS')
},
methods: {
close() {
this.$router.back()
Expand Down

0 comments on commit 5270619

Please sign in to comment.