aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/public_and_external_timeline/public_and_external_timeline.js6
-rw-r--r--src/components/public_timeline/public_timeline.js7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/components/public_and_external_timeline/public_and_external_timeline.js b/src/components/public_and_external_timeline/public_and_external_timeline.js
index 138118ad..0db6efae 100644
--- a/src/components/public_and_external_timeline/public_and_external_timeline.js
+++ b/src/components/public_and_external_timeline/public_and_external_timeline.js
@@ -5,6 +5,12 @@ const PublicAndExternalTimeline = {
},
computed: {
timeline () { return this.$store.state.statuses.timelines.publicAndExternal }
+ },
+ created () {
+ this.$store.dispatch('startFetching', 'publicAndExternal')
+ },
+ destroyed () {
+ this.$store.dispatch('stopFetching', 'publicAndExternal')
}
}
diff --git a/src/components/public_timeline/public_timeline.js b/src/components/public_timeline/public_timeline.js
index cac422ec..9b866be8 100644
--- a/src/components/public_timeline/public_timeline.js
+++ b/src/components/public_timeline/public_timeline.js
@@ -5,7 +5,14 @@ const PublicTimeline = {
},
computed: {
timeline () { return this.$store.state.statuses.timelines.public }
+ },
+ created () {
+ this.$store.dispatch('startFetching', 'public')
+ },
+ destroyed () {
+ this.$store.dispatch('stopFetching', 'public')
}
+
}
export default PublicTimeline