mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 06:19:41 +02:00
fix(ui): namespace cache refresh on reload EE-5155 (#8644)
This commit is contained in:
parent
44582732bb
commit
6ee5cc6a56
9 changed files with 28 additions and 15 deletions
|
@ -189,7 +189,7 @@ class KubernetesApplicationsController {
|
|||
};
|
||||
|
||||
this.state.namespaces = await this.KubernetesNamespaceService.get();
|
||||
this.state.namespaces = this.state.namespaces.filter((n) => n.Status !== 'Terminating');
|
||||
this.state.namespaces = this.state.namespaces.filter((n) => n.Status === 'Active');
|
||||
this.state.namespaces = _.sortBy(this.state.namespaces, 'Name');
|
||||
this.state.namespace = this.state.namespaces.length ? (this.state.namespaces.find((n) => n.Name === 'default') ? 'default' : this.state.namespaces[0].Name) : '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue