mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
ui: fix section search filter (#12146)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
028dd86945
commit
f379d78963
@ -1821,8 +1821,13 @@ export default {
|
||||
},
|
||||
onSearch (opts) {
|
||||
const query = Object.assign({}, this.$route.query)
|
||||
const searchFilters = this.$route?.meta?.searchFilters || []
|
||||
searchFilters.forEach(key => delete query[key])
|
||||
let searchFilters = this.$route?.meta?.searchFilters || []
|
||||
if (typeof searchFilters === 'function') {
|
||||
searchFilters = searchFilters()
|
||||
}
|
||||
if (Array.isArray(searchFilters)) {
|
||||
searchFilters.forEach(key => delete query[key])
|
||||
}
|
||||
delete query.name
|
||||
delete query.templatetype
|
||||
delete query.keyword
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user