Make the timeline button use the correct func for its text.
This commit is contained in:
parent
fc1736618b
commit
912be5aed9
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ const Timeline = {
|
||||||
return this.timeline.newStatusCount
|
return this.timeline.newStatusCount
|
||||||
},
|
},
|
||||||
newStatusCountStr () {
|
newStatusCountStr () {
|
||||||
if (this.timeline.flushMarker) {
|
if (this.timeline.flushMarker > 0) {
|
||||||
return ''
|
return ''
|
||||||
} else {
|
} else {
|
||||||
return ` (${this.newStatusCount})`
|
return ` (${this.newStatusCount})`
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{{title}}
|
{{title}}
|
||||||
</div>
|
</div>
|
||||||
<button @click.prevent="showNewStatuses" class="base05 base02-background loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError">
|
<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>
|
</button>
|
||||||
<div @click.prevent class="base06 error loadmore-text" v-if="timelineError">
|
<div @click.prevent class="base06 error loadmore-text" v-if="timelineError">
|
||||||
{{$t('timeline.error_fetching')}}
|
{{$t('timeline.error_fetching')}}
|
||||||
|
|
Loading…
Reference in a new issue