aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.vue
diff options
context:
space:
mode:
authorWyatt Benno <wyattbenno@gmail.com>2019-12-05 11:48:37 +0900
committerWyatt Benno <wyattbenno@gmail.com>2019-12-05 11:48:37 +0900
commit13fc2612ae388dec682829ae2b6211bb3cb8ccb3 (patch)
treeaf2d85d4ce07922c4cfbcd2ba688e559d0e8ac30 /src/components/timeline/timeline.vue
parent7b1d5a4f5c54e6ea549a3a69d180970305ff0715 (diff)
Change 403 messaging
Diffstat (limited to 'src/components/timeline/timeline.vue')
-rw-r--r--src/components/timeline/timeline.vue19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index 93f6f570..1c45d0f6 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -11,15 +11,22 @@
>
{{ $t('timeline.error_fetching') }}
</div>
+ <div
+ v-else-if="error403"
+ class="loadmore-error alert error"
+ @click.prevent
+ >
+ {{ $t('timeline.error_403') }}
+ </div>
<button
- v-if="timeline.newStatusCount > 0 && !timelineError"
+ v-if="timeline.newStatusCount > 0 && !timelineError && !error403"
class="loadmore-button"
@click.prevent="showNewStatuses"
>
{{ $t('timeline.show_new') }}{{ newStatusCountStr }}
</button>
<div
- v-if="!timeline.newStatusCount > 0 && !timelineError"
+ v-if="!timeline.newStatusCount > 0 && !timelineError && !error403"
class="loadmore-text faint"
@click.prevent
>
@@ -67,12 +74,18 @@
{{ $t('timeline.no_more_statuses') }}
</div>
<a
- v-else-if="!timeline.loading"
+ v-else-if="!timeline.loading && !error403"
href="#"
@click.prevent="fetchOlderStatuses()"
>
<div class="new-status-notification text-center panel-footer">{{ $t('timeline.load_older') }}</div>
</a>
+ <a
+ v-else-if="error403"
+ href="#"
+ >
+ <div class="new-status-notification text-center panel-footer">{{ $t('timeline.error_403_message') }}</div>
+ </a>
<div
v-else
class="new-status-notification text-center panel-footer"