diff options
| author | shpuld <shp@cock.li> | 2017-11-22 00:47:20 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2017-11-22 00:47:20 +0200 |
| commit | 912be5aed9c8616d4c5772617ab4eef9a50d9061 (patch) | |
| tree | ba375639d0707d32e16f59273529fb62e6ffc266 | |
| parent | fc1736618b4e1a9f178c0ae287754c6ac1244b08 (diff) | |
Make the timeline button use the correct func for its text.
| -rw-r--r-- | src/components/timeline/timeline.js | 2 | ||||
| -rw-r--r-- | src/components/timeline/timeline.vue | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 9ef8406b..10ad4561 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -31,7 +31,7 @@ const Timeline = { return this.timeline.newStatusCount }, newStatusCountStr () { - if (this.timeline.flushMarker) { + if (this.timeline.flushMarker > 0) { return '' } else { return ` (${this.newStatusCount})` diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 365c8236..9d2e1ea1 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -5,7 +5,7 @@ {{title}} </div> <button @click.prevent="showNewStatuses" class="base05 base02-background loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError"> - {{$t('timeline.show_new')}}{{timeline.newStatusMsg}} + {{$t('timeline.show_new')}}{{newStatusCountStr}} </button> <div @click.prevent class="base06 error loadmore-text" v-if="timelineError"> {{$t('timeline.error_fetching')}} |
