Make the timeline button use the correct func for its text.

This commit is contained in:
shpuld 2017-11-22 00:47:20 +02:00
parent fc1736618b
commit 912be5aed9
2 changed files with 2 additions and 2 deletions

View file

@ -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})`

View file

@ -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')}}