logo

pleroma-fe

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

tag_timeline.js (698B)


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