diff --git a/webapp/locales/de.json b/webapp/locales/de.json
index 812cf5665..e249ce160 100644
--- a/webapp/locales/de.json
+++ b/webapp/locales/de.json
@@ -1,4 +1,8 @@
{
+ "index": {
+ "no-results": "Keine Beiträge gefunden.",
+ "change-filter-settings": "Verändere die Filter-Einstellungen um mehr Ergebnisse zu erhalten."
+ },
"filter-menu": {
"title": "Deine Filterblase",
"hashtag-search": "Suche nach #{hashtag}",
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index 5595fb06b..7f9e7286b 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -1,4 +1,8 @@
{
+ "index": {
+ "no-results": "No contributions found.",
+ "change-filter-settings": "Change your filter settings to get more results."
+ },
"filter-menu": {
"title": "Your filter bubble",
"hashtag-search": "Searching for #{hashtag}",
diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue
index 29cabbf68..910fa7a2f 100644
--- a/webapp/pages/index.vue
+++ b/webapp/pages/index.vue
@@ -15,13 +15,26 @@
>
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ $t('index.no-results') }}
+
+
+ {{ $t('index.change-filter-settings') }}
+
+
+
import FilterMenu from '~/components/FilterMenu/FilterMenu.vue'
import uniqBy from 'lodash/uniqBy'
+import HcEmpty from '~/components/Empty'
import HcPostCard from '~/components/PostCard'
import HcLoadMore from '~/components/LoadMore.vue'
import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue'
@@ -61,6 +75,7 @@ export default {
FilterMenu,
HcPostCard,
HcLoadMore,
+ HcEmpty,
MasonryGrid,
MasonryGridItem,
},
@@ -119,6 +134,9 @@ export default {
}
return filter
},
+ hasResults() {
+ return this.$apollo.loading || (this.posts && this.posts.length > 0)
+ },
},
watch: {
postsFilter() {