This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new 7c76a3c12a8 ui: searchview change should only remove related query
params (#11576)
7c76a3c12a8 is described below
commit 7c76a3c12a84db92be46712c69b10cd9aacc3055
Author: Abhishek Kumar <[email protected]>
AuthorDate: Mon Sep 15 13:31:02 2025 +0530
ui: searchview change should only remove related query params (#11576)
---
ui/src/views/AutogenView.vue | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue
index 6b57e0f6ea0..b1f26a17f8f 100644
--- a/ui/src/views/AutogenView.vue
+++ b/ui/src/views/AutogenView.vue
@@ -1821,9 +1821,8 @@ export default {
},
onSearch (opts) {
const query = Object.assign({}, this.$route.query)
- for (const key in this.searchParams) {
- delete query[key]
- }
+ const searchFilters = this.$route?.meta?.searchFilters || []
+ searchFilters.forEach(key => delete query[key])
delete query.name
delete query.templatetype
delete query.keyword