1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00

fix(ns): add selection caching back [EE-5273] (#8738)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-04-06 14:28:01 +12:00 committed by GitHub
parent bf56bdb8f6
commit 5ac1ea3df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}