Add tag timeline view. See merge request !121environments/dev/deployments/1
commit
91991e2ac1
@ -0,0 +1,26 @@
|
||||
import Timeline from '../timeline/timeline.vue'
|
||||
|
||||
const TagTimeline = {
|
||||
created () {
|
||||
this.$store.commit('clearTimeline', { timeline: 'tag' })
|
||||
this.$store.dispatch('startFetching', { 'tag': this.tag })
|
||||
},
|
||||
components: {
|
||||
Timeline
|
||||
},
|
||||
computed: {
|
||||
tag () { return this.$route.params.tag },
|
||||
timeline () { return this.$store.state.statuses.timelines.tag }
|
||||
},
|
||||
watch: {
|
||||
tag () {
|
||||
this.$store.commit('clearTimeline', { timeline: 'tag' })
|
||||
this.$store.dispatch('startFetching', { 'tag': this.tag })
|
||||
}
|
||||
},
|
||||
destroyed () {
|
||||
this.$store.dispatch('stopFetching', 'tag')
|
||||
}
|
||||
}
|
||||
|
||||
export default TagTimeline
|
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<Timeline :title="tag" :timeline="timeline" :timeline-name="'tag'" :tag="tag" />
|
||||
</template>
|
||||
|
||||
<script src='./tag_timeline.js'></script>
|
Loading…
Reference in new issue