fix: refresh torrent detail data from store (#509)

This commit is contained in:
Tadas Vosylius 2022-10-10 22:34:29 +03:00 committed by WDaan
parent aac9f046e2
commit 5270619a5d

View file

@ -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
@ -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()