Improved feedback when no results were found

This commit is contained in:
Sebastian Lay
2023-06-28 16:36:12 +02:00
parent feb0ce5072
commit c1cf42de92
6 changed files with 24 additions and 8 deletions

View File

@@ -76,6 +76,11 @@ Vue.createApp({
formatPrice: function(price) {
return "€".repeat(price);
},
reset: function() {
this.search = '';
this.type = 'all';
this.format = 'all';
},
sort: function(button) {
if(this.sortBy === button.target.innerText.toLowerCase()) {
this.sortDir === 'asc' ? this.sortDir = 'desc' : this.sortDir = 'asc';