-
-
- {{ searchCount }}
- {{ $t('search.results', {}, searchCount) }}
-
-
+
+ {{ $t('search.for') }} "
+ {{ search }}
+ "
+
+ {{ searchCount }}
+ {{ $t('search.results', {}, searchCount) }}
+
@@ -63,6 +65,7 @@
@next="nextResults"
:key="'Bottom'"
:pageSize="pageSize"
+ :srollTo="'#search-results'"
/>
@@ -148,17 +151,20 @@ export default {
return [
{
type: 'Post',
- title: `${this.postCount} ${this.$t('search.heading.Post', {}, this.postCount)}`,
+ title: this.$t('search.heading.Post', {}, this.postCount),
+ count: this.postCount,
disabled: this.postCount === 0,
},
{
type: 'User',
- title: `${this.userCount} ${this.$t('search.heading.User', {}, this.userCount)}`,
+ title: this.$t('search.heading.User', {}, this.userCount),
+ count: this.userCount,
disabled: this.userCount === 0,
},
{
type: 'Hashtag',
- title: `${this.hashtagCount} ${this.$t('search.heading.Tag', {}, this.hashtagCount)}`,
+ title: this.$t('search.heading.Tag', {}, this.hashtagCount),
+ count: this.hashtagCount,
disabled: this.hashtagCount === 0,
},
]
@@ -206,6 +212,7 @@ export default {
}
},
nextResults() {
+ // scroll to top??
switch (this.activeTab) {
case 'Post':
this.postPage++
diff --git a/webapp/components/_new/generic/PaginationButtons/PaginationButtons.spec.js b/webapp/components/_new/generic/PaginationButtons/PaginationButtons.spec.js
index 15a2c5699..0a1e6d282 100644
--- a/webapp/components/_new/generic/PaginationButtons/PaginationButtons.spec.js
+++ b/webapp/components/_new/generic/PaginationButtons/PaginationButtons.spec.js
@@ -13,7 +13,6 @@ describe('PaginationButtons.vue', () => {
let wrapper
const mocks = {
$t: jest.fn(),
- scrollTo: jest.fn(),
}
const Wrapper = () => {
diff --git a/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue b/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue
index e2600653c..0af6dd1cd 100644
--- a/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue
+++ b/webapp/components/_new/generic/PaginationButtons/PaginationButtons.vue
@@ -19,7 +19,6 @@
icon="arrow-right"
circle
class="next-button"
- v-scroll-to="'#search-results'"
/>