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

fix/status-heading-alignment-issues
shpuld 7 years ago
parent fc1736618b
commit 912be5aed9

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

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

Loading…
Cancel
Save