From 0407629f599ed6890e6bc688b332d729adc66501 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 4 Sep 2025 14:09:15 +0530 Subject: [PATCH 1/2] ui: donot remove account, domain from query on public ip filter change Currently, when changing filter on public IP view (Free, Reserved, Allocated) it removes the account and domain values from query. This PR prevents that as public IP view filters have no relation with account/domain. Signed-off-by: Abhishek Kumar --- ui/src/views/AutogenView.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index e2d99096b157..3600adad4733 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1723,8 +1723,10 @@ export default { const query = Object.assign({}, this.$route.query) delete query.templatefilter delete query.isofilter - delete query.account - delete query.domainid + if (!['publicip'].includes(this.$route.name)) { + delete query.account + delete query.domainid + } delete query.state delete query.annotationfilter if (this.$route.name === 'template') { From 98c6b874b6b645e910d667f134f98935113345f8 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 8 Sep 2025 20:40:15 +0530 Subject: [PATCH 2/2] order Signed-off-by: Abhishek Kumar --- ui/src/views/AutogenView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 3600adad4733..6b57e0f6ea06 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1723,12 +1723,12 @@ export default { const query = Object.assign({}, this.$route.query) delete query.templatefilter delete query.isofilter + delete query.state + delete query.annotationfilter if (!['publicip'].includes(this.$route.name)) { delete query.account delete query.domainid } - delete query.state - delete query.annotationfilter if (this.$route.name === 'template') { query.templatefilter = filter } else if (this.$route.name === 'iso') {