mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(unified_search): Reset result limit for new search requests
Before now the result limit is never reset until the page is refreshed. Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
parent
b35fad7a03
commit
04f227a102
1 changed files with 7 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ export default defineComponent({
|
|||
filteredProviders: [],
|
||||
searching: false,
|
||||
searchQuery: '',
|
||||
lastSearchQuery: '',
|
||||
placessearchTerm: '',
|
||||
dateTimeFilter: null,
|
||||
filters: [],
|
||||
|
|
@ -367,6 +368,12 @@ export default defineComponent({
|
|||
return
|
||||
}
|
||||
|
||||
// Reset the provider result limit when performing a new search
|
||||
if (query !== this.lastSearchQuery) {
|
||||
this.providerResultLimit = 5
|
||||
}
|
||||
this.lastSearchQuery = query
|
||||
|
||||
this.searching = true
|
||||
const newResults = []
|
||||
const providersToSearch = this.filteredProviders.length > 0 ? this.filteredProviders : this.providers
|
||||
|
|
|
|||
Loading…
Reference in a new issue