diff --git a/webapp/components/_new/features/SearchResults/SearchResults.vue b/webapp/components/_new/features/SearchResults/SearchResults.vue
index b7a58af65..1662825e1 100644
--- a/webapp/components/_new/features/SearchResults/SearchResults.vue
+++ b/webapp/components/_new/features/SearchResults/SearchResults.vue
@@ -20,11 +20,11 @@
/>
@@ -35,22 +35,22 @@
@@ -85,11 +85,11 @@
@@ -124,9 +124,12 @@ export default {
search: {
type: String,
},
+ pageSize: {
+ type: Number,
+ default: 24
+ },
},
data() {
- const pageSize = 25
return {
posts: [],
users: [],
@@ -138,10 +141,9 @@ export default {
hashtagCount: 0,
hashtagPage: 0,
activeTab: null,
- pageSize,
- firstPosts: pageSize,
- firstUsers: pageSize,
- firstHashtags: pageSize,
+ firstPosts: this.pageSize,
+ firstUsers: this.pageSize,
+ firstHashtags: this.pageSize,
postsOffset: 0,
usersOffset: 0,
hashtagsOffset: 0,
@@ -189,6 +191,10 @@ export default {
return this.hashtagsOffset > 0
},
hasMorePosts() {
+ console.log("this.postPage",this.postPage)
+ console.log("this.pageSize",this.pageSize)
+ console.log("this.postCount",this.postCount)
+
return (this.postPage + 1) * this.pageSize < this.postCount
},
hasMoreUsers() {
diff --git a/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue b/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue
index b5c13d6bd..54ae935f8 100644
--- a/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue
+++ b/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue
@@ -8,7 +8,8 @@
data-test="previous-button"
/>
export default {
props: {
+ pageSize: {
+ type: Number,
+ default: 24
+ },
hasNext: {
type: Boolean,
default: false,
@@ -33,15 +38,16 @@ export default {
type: Boolean,
default: false,
},
- hasResultPage: {
+ activePage: {
type: Number,
default: 0,
},
- hasResultCount: {
+ totalResultCount: {
type: Number,
default: 0,
},
},
+
}
diff --git a/webapp/locales/de.json b/webapp/locales/de.json
index 1ef28847f..a5dc6ff2b 100644
--- a/webapp/locales/de.json
+++ b/webapp/locales/de.json
@@ -595,7 +595,7 @@
"User": "Benutzer"
},
"hint": "Wonach suchst Du?",
- "results": "Ergebnisse gefunden ",
+ "results": "Ergebnisse gefunden",
"no-results": "Keine Ergebnisse für \"{search}\" gefunden. Versuch' es mit einem anderen Begriff!",
"placeholder": "Suchen"
},
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index 2fef1b291..df31da07b 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -595,7 +595,7 @@
"User": "Users"
},
"hint": "What are you searching for?",
- "results": "{searchCount} Results founding",
+ "results": "Results found",
"no-results": "No results found for \"{search}\". Try a different search term!",
"placeholder": "Search"
},