aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.vue
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-11-10 12:52:54 +0200
committerShpuld Shpuldson <shp@cock.li>2020-11-10 12:52:54 +0200
commitd150dae5d156416351312f25b06de0013ee0a95d (patch)
treee26943937f83fc08fcc58a81500a47d04b4ee2d6 /src/components/timeline/timeline.vue
parente6ca489d302fe4d1e9379067bbf1bbb02ed3e87b (diff)
fixes to timeline error handling
Diffstat (limited to 'src/components/timeline/timeline.vue')
-rw-r--r--src/components/timeline/timeline.vue24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index 04859852..d4da2a87 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -2,22 +2,8 @@
<div :class="[classes.root, 'Timeline']">
<div :class="classes.header">
<TimelineMenu v-if="!embedded" />
- <div
- v-if="timelineError"
- class="loadmore-error alert error"
- @click.prevent
- >
- {{ $t('timeline.error_fetching') }}
- </div>
- <div
- v-else-if="errorData"
- class="loadmore-error alert error"
- @click.prevent
- >
- {{ errorData.statusText }}
- </div>
<button
- v-else-if="showLoadButton"
+ v-if="showLoadButton"
class="loadmore-button"
@click.prevent="showNewStatuses"
>
@@ -76,18 +62,12 @@
{{ $t('timeline.no_more_statuses') }}
</div>
<a
- v-else-if="!timeline.loading && !errorData"
+ v-else-if="!timeline.loading"
href="#"
@click.prevent="fetchOlderStatuses()"
>
<div class="new-status-notification text-center panel-footer">{{ $t('timeline.load_older') }}</div>
</a>
- <a
- v-else-if="errorData"
- href="#"
- >
- <div class="new-status-notification text-center panel-footer">{{ errorData.error }}</div>
- </a>
<div
v-else
class="new-status-notification text-center panel-footer"