diff options
| author | lain <lain@soykaf.club> | 2020-07-01 12:46:42 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-07-01 12:46:42 +0000 |
| commit | beb160bd537abcb7f2e147c7954886d2f51d385f (patch) | |
| tree | 332eb88bacbc6a11f61808280edaec50ebf48bbb /src/components/timeline/timeline.js | |
| parent | 82944f862d07db46cf342f2ee75b2ab6ddccc4fc (diff) | |
| parent | 38d8526660df4ca664c9ea50a660868be2cb5e49 (diff) | |
Merge branch 'fix/use-backend-reply-filtering' into 'develop'
Make use of backend reply filtering
See merge request pleroma/pleroma-fe!1163
Diffstat (limited to 'src/components/timeline/timeline.js')
| -rw-r--r-- | src/components/timeline/timeline.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 9a53acd6..d6519f4a 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -45,11 +45,15 @@ const Timeline = { newStatusCount () { return this.timeline.newStatusCount }, - newStatusCountStr () { + showLoadButton () { + if (this.timelineError || this.errorData) return false + return this.timeline.newStatusCount > 0 || this.timeline.flushMarker !== 0 + }, + loadButtonString () { if (this.timeline.flushMarker !== 0) { - return '' + return this.$t('timeline.reload') } else { - return ` (${this.newStatusCount})` + return `${this.$t('timeline.show_new')} (${this.newStatusCount})` } }, classes () { @@ -112,8 +116,6 @@ const Timeline = { if (e.key === '.') this.showNewStatuses() }, showNewStatuses () { - if (this.newStatusCount === 0) return - if (this.timeline.flushMarker !== 0) { this.$store.commit('clearTimeline', { timeline: this.timelineName, excludeUserId: true }) this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 }) |
