Merge branch 'feature/timeline-fetch-error' into 'develop'

Use one error variable for all timelines

See merge request !57
This commit is contained in:
Shpuld Shpuldson 2017-03-09 08:06:59 -05:00
commit 7aa1f02e38
4 changed files with 17 additions and 26 deletions

View file

@ -4,13 +4,13 @@
<div class="title">
{{title}}
</div>
<button @click.prevent="showNewStatuses" class="base06 base02-background loadmore-button" v-if="timeline.newStatusCount > 0 && !timeline.error">
<button @click.prevent="showNewStatuses" class="base06 base02-background loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError">
Show new ({{timeline.newStatusCount}})
</button>
<button @click.prevent class="base06 error no-press loadmore-button" v-if="timeline.error">
<button @click.prevent class="base06 error no-press loadmore-button" v-if="timelineError">
Error fetching updates
</button>
<button @click.prevent class="base04 base01-background no-press loadmore-button" v-if="!timeline.newStatusCount > 0 && !timeline.error">
<button @click.prevent class="base04 base01-background no-press loadmore-button" v-if="!timeline.newStatusCount > 0 && !timelineError">
Up-to-date
</button>
</div>