Skip to content

Commit

Permalink
feat(history-queries): hide filters length in predictive (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrardo authored Nov 6, 2023
1 parent 4a8b2b7 commit 599bb95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/history-query-filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ filter.label }}
</span>
</div>
<span>({{ filtersList.length }})</span>
<span v-if="showLength">({{ filtersList.length }})</span>
</div>
</template>

Expand All @@ -17,7 +17,13 @@
props: {
filtersList: {
type: Array as PropType<HistoryQuery['selectedFilters']>,
required: true
required: true,
default: () => []
},
showLength: {
type: Boolean,
required: false,
default: false
}
}
});
Expand Down
1 change: 1 addition & 0 deletions src/components/my-history/custom-my-history.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<p class="group-hover:x-underline">{{ suggestion.query }}</p>

<HistoryQueryFilters
:showLength="true"
class="x-w-224 desktop:x-w-320"
:filtersList="suggestion.selectedFilters"
/>
Expand Down

0 comments on commit 599bb95

Please sign in to comment.