@@ -12,6 +12,7 @@ useHead({
1212 <div class =" p-inputgroup" >
1313 <span class =" p-inputgroup-addon" > Platform </span >
1414 <SelectButton
15+ @change =" handlesearch"
1516 v-model =" selectedPlatform"
1617 :options =" platforms"
1718 optionLabel =" name"
@@ -22,6 +23,7 @@ useHead({
2223 <div class =" p-inputgroup" >
2324 <span class =" p-inputgroup-addon" > Type </span >
2425 <Dropdown
26+ @change =" handlesearch"
2527 v-model =" selectedType"
2628 :options =" types"
2729 optionLabel =" name"
@@ -32,6 +34,7 @@ useHead({
3234 <div class =" p-inputgroup" >
3335 <span class =" p-inputgroup-addon" > Tags </span >
3436 <MultiSelect
37+ @change =" handlesearch"
3538 v-model =" selectedTags"
3639 :options =" tagOptions"
3740 optionLabel =" label"
@@ -46,6 +49,7 @@ useHead({
4649 <div class =" p-inputgroup" >
4750 <span class =" p-inputgroup-addon" > Title </span >
4851 <InputText
52+ @input =" handlesearch"
4953 @keyup.enter =" handlesearch()"
5054 v-model =" textQuery"
5155 placeholder =" Text query"
@@ -74,7 +78,8 @@ useHead({
7478 <h5 >{{ entries.length }} Results</h5 >
7579
7680 <div v-if =" entries.length == 0" >
77- Welp, it looks like there are no results matching your query
81+ Welp, it looks like there are no results matching your query.
82+ <a href =" #" @click =" resetsearch" >Reset?</a >
7883 </div >
7984 <List :entries =" entries" />
8085 </div >
@@ -98,6 +103,7 @@ export default {
98103 this .textQuery = null ;
99104 this .selectedType = { name: " All" , code: " all" };
100105 this .selectedTags = [];
106+ this .handlesearch ();
101107 },
102108 handlesearch : function () {
103109 let config = useRuntimeConfig ().public ;
0 commit comments