diff options
| author | shpuld <shp@cock.li> | 2019-01-30 20:49:24 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-01-30 20:49:24 +0200 |
| commit | c7cffbb6c70bbb21cf787d96e82e0261427b9234 (patch) | |
| tree | a517e4942725286b173b685cbe87bc6c7878b66e /src/components/timeline/timeline.js | |
| parent | 51024a2c8af9d88b07c050b7502fa62843aa4ba2 (diff) | |
| parent | b1facdf7ad54436c2afde7c28c917cda87a5b7e3 (diff) | |
Merge branch 'develop' into feat/media-modal
Diffstat (limited to 'src/components/timeline/timeline.js')
| -rw-r--r-- | src/components/timeline/timeline.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 98da8660..85e0a055 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -16,7 +16,8 @@ const Timeline = { data () { return { paused: false, - unfocused: false + unfocused: false, + bottomedOut: false } }, computed: { @@ -95,7 +96,12 @@ const Timeline = { showImmediately: true, userId: this.userId, tag: this.tag - }).then(() => store.commit('setLoading', { timeline: this.timelineName, value: false })) + }).then(statuses => { + store.commit('setLoading', { timeline: this.timelineName, value: false }) + if (statuses.length === 0) { + this.bottomedOut = true + } + }) }, 1000, this), scrollLoad (e) { const bodyBRect = document.body.getBoundingClientRect() |
