pleroma-fe/src/components/quotes_timeline/quotes_timeline.js

36 lines
822 B
JavaScript
Raw Normal View History

import Timeline from 'src/components/timeline/timeline.vue'
const QuotesTimeline = {
2026-01-06 16:22:52 +02:00
created() {
this.$store.commit('clearTimeline', { timeline: 'quotes' })
2026-01-06 16:22:52 +02:00
this.$store.dispatch('startFetchingTimeline', {
timeline: 'quotes',
statusId: this.statusId,
})
},
components: {
2026-01-06 16:22:52 +02:00
Timeline,
},
computed: {
2026-01-06 16:22:52 +02:00
statusId() {
return this.$route.params.id
},
timeline() {
return this.$store.state.statuses.timelines.quotes
},
},
watch: {
2026-01-06 16:22:52 +02:00
statusId() {
this.$store.commit('clearTimeline', { timeline: 'quotes' })
2026-01-06 16:22:52 +02:00
this.$store.dispatch('startFetchingTimeline', {
timeline: 'quotes',
statusId: this.statusId,
})
},
},
2026-01-06 16:22:52 +02:00
unmounted() {
this.$store.dispatch('stopFetchingTimeline', 'quotes')
2026-01-06 16:22:52 +02:00
},
}
export default QuotesTimeline