diff options
author | Cyrille Bollu <cyrpub@bollu.be> | 2019-09-10 14:47:17 +0200 |
---|---|---|
committer | Cyrille Bollu <cyrpub@bollu.be> | 2019-09-10 14:47:17 +0200 |
commit | 66419f061fa798ed36b14060a3bf1481bfb2903a (patch) | |
tree | 134a773004fd8a8934913290c8e3ac39dcd8a4b2 /src | |
parent | 399888f88fe28ed55a021319e732324f30fd33db (diff) |
fixes the "empty content" message of various route
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/TimelineList.vue | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/TimelineList.vue b/src/components/TimelineList.vue index b0397cf0..4d58b486 100644 --- a/src/components/TimelineList.vue +++ b/src/components/TimelineList.vue @@ -93,7 +93,7 @@ export default { description: t('social', 'Posts from other people on this instance will show up here') }, notifications: { - image: 'img/undraw/profile.svg', + image: 'img/undraw/notifications.svg', title: t('social', 'No notifications found'), description: t('social', 'You haven\'t receive any notifications yet') }, @@ -103,9 +103,13 @@ export default { description: t('social', 'Posts from federated instances will show up here') }, liked: { - image: 'img/undraw/profile.svg', + image: 'img/undraw/likes.svg', title: t('social', 'No liked posts found') }, + profile: { + image: 'img/undraw/profile.svg', + title: t('social', 'You haven\'t tooted yet') + }, tags: { image: 'img/undraw/profile.svg', title: t('social', 'No posts found for this tag') @@ -115,12 +119,12 @@ export default { }, computed: { emptyContentData() { - if (typeof this.emptyContent[this.$route.name] !== 'undefined') { - return this.emptyContent[this.$route.name] - } if (typeof this.emptyContent[this.$route.params.type] !== 'undefined') { return this.emptyContent[this.$route.params.type] } + if (typeof this.emptyContent[this.$route.name] !== 'undefined') { + return this.$route.name === 'timeline' ? this.emptyContent['default'] : this.emptyContent[this.$route.name] + } return this.emptyContent.default }, timeline: function() { |