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

38 lines
869 B
JavaScript
Raw Normal View History

import Timeline from 'src/components/timeline/timeline.vue'
2026-08-10 22:26:22 +03:00
import { useStatusesStore } from 'src/stores/statuses.js'
const QuotesTimeline = {
2026-01-06 16:22:52 +02:00
created() {
2026-08-10 22:26:22 +03:00
useStatusesStore().clearTimeline({ timeline: 'tag' })
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() {
2026-08-10 22:26:22 +03:00
useStatusesStore().clearTimeline({ timeline: 'tag' })
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