Skip to content

Commit

Permalink
feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RitikaDesai98 committed Jul 25, 2024
1 parent 501f517 commit 0c4cea4
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</span>
</div>
<div v-else-if="$refs.paginator">
Showing {{ start }} – {{ end }} of {{ total }} results
Showing {{ start }} – {{ end }} of {{ filteredTools.length }} results
<span v-if="search.length > 0">
for <b><em>"{{ search }}"</em></b>
</span>
Expand All @@ -126,6 +126,18 @@
@click="clearAllFilters"
>
</span>
<div v-if="emptyResponse" class="helper-text">
There were no results found matching your search. Try adjusting your search settings.
<br>
<br>
Here are some options:
<ul>
<li>Use different or fewer search terms</li>
<li>Check your spelling</li>
<li>Remove or adjust any filters</li>
</ul>
Want to start over? Select Clear all to reset the search settings.
</div>
</div>
<paginate
v-if="allTools.length > 0 "
Expand Down Expand Up @@ -317,6 +329,7 @@ export default {
},
async mounted() {
this.setPerPage();
this.getAllTopics();
await this.getAllTools();
this.getFeaturedTools();
Expand All @@ -331,12 +344,9 @@ export default {
});
});
this.setPerPage();
addEventListener('resize', (event) => {
this.setPerPage();
});
// console.log(this.$refs.paginator);
// console.log(this.$refs.paginator.pageItemsCount);
},
methods: {
Expand Down Expand Up @@ -519,7 +529,7 @@ export default {
if (matches != null) {
this.start = matches[1];
this.end = matches[2];
this.total = matches[3];
// this.total = tools.length;
}
return;
},
Expand Down Expand Up @@ -676,6 +686,10 @@ export default {
text-decoration: underline;
}
.helper-text {
margin-top: 1rem;
}
.clear-button {
color: #ffffff;
background-color: #0F4D90;
Expand Down

0 comments on commit 0c4cea4

Please sign in to comment.