From 8ab490f2240ff02543b69fa5d681f9035ecaf23e Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Thu, 6 Apr 2023 14:28:05 +1200 Subject: [PATCH] fix(ns): add selection caching back [EE-5273] (#8739) Co-authored-by: testa113 --- app/kubernetes/views/applications/applicationsController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/kubernetes/views/applications/applicationsController.js b/app/kubernetes/views/applications/applicationsController.js index d48cccb10..8b3aea018 100644 --- a/app/kubernetes/views/applications/applicationsController.js +++ b/app/kubernetes/views/applications/applicationsController.js @@ -143,8 +143,10 @@ class KubernetesApplicationsController { }); } - onChangeNamespaceDropdown(namespace) { - this.state.namespaceName = namespace; + onChangeNamespaceDropdown(namespaceName) { + this.state.namespaceName = namespaceName; + // save the selected namespaceName in local storage with the key 'kubernetes_namespace_filter_${environmentId}_${userID}' + this.LocalStorage.storeNamespaceFilter(this.endpoint.Id, this.user.ID, namespaceName); return this.$async(this.getApplicationsAsync); }