logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

quotes_timeline.js (751B)


  1. import Timeline from '../timeline/timeline.vue'
  2. const QuotesTimeline = {
  3. created () {
  4. this.$store.commit('clearTimeline', { timeline: 'quotes' })
  5. this.$store.dispatch('startFetchingTimeline', { timeline: 'quotes', statusId: this.statusId })
  6. },
  7. components: {
  8. Timeline
  9. },
  10. computed: {
  11. statusId () { return this.$route.params.id },
  12. timeline () { return this.$store.state.statuses.timelines.quotes }
  13. },
  14. watch: {
  15. statusId () {
  16. this.$store.commit('clearTimeline', { timeline: 'quotes' })
  17. this.$store.dispatch('startFetchingTimeline', { timeline: 'quotes', statusId: this.statusId })
  18. }
  19. },
  20. unmounted () {
  21. this.$store.dispatch('stopFetchingTimeline', 'quotes')
  22. }
  23. }
  24. export default QuotesTimeline