Fix active filters display
This commit is contained in:
parent
5f828b55f4
commit
ba4cd3049b
|
@ -30,7 +30,7 @@
|
|||
<div class="button-rows">
|
||||
<button class="filters-button peertube-button" v-on:click="toggleFilters()">
|
||||
<translate>Filters</translate>
|
||||
<span v-if="countActiveFilters()" v-translate> ({{ countActiveFilters() }} active)</span>
|
||||
<span v-if="activeFilters" v-translate="{ activeFilters: activeFilters }"> (%{activeFilters} active)</span>
|
||||
|
||||
<div class="arrow-down"></div>
|
||||
</button>
|
||||
|
@ -169,7 +169,7 @@
|
|||
<span v-if="resultsCount !== null && resultsCount !== 0" v-translate="{ resultsCount: resultsCount }">%{resultsCount} results found for</span>
|
||||
<strong>
|
||||
{{ searchedTerm }}
|
||||
<span v-if="countActiveFilters() > 0" v-translate="{ activeFilters: countActiveFilters() }">with %{activeFilters} active filters</span>
|
||||
<span v-if="activeFilters > 0" v-translate="{ activeFilters: activeFilters }">with %{activeFilters} active filters</span>
|
||||
</strong>
|
||||
|
||||
|
||||
|
@ -467,7 +467,9 @@
|
|||
formTagAllOf: '',
|
||||
formTagOneOf: '',
|
||||
formTagsAllOf: [],
|
||||
formTagsOneOf: []
|
||||
formTagsOneOf: [],
|
||||
|
||||
activeFilters: 0
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -645,6 +647,8 @@
|
|||
|
||||
Nprogress.done()
|
||||
|
||||
this.activeFilters = this.countActiveFilters()
|
||||
|
||||
this.channelsCount = channelsResult.total
|
||||
this.videosCount = videosResult.total
|
||||
|
||||
|
|
Loading…
Reference in New Issue