mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Reset ClusterStatus state when switching clusters (#5149)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
65da0ce2d8
commit
6c4262820d
@ -55,6 +55,13 @@ export class ClusterStatus extends React.Component<Props> {
|
||||
]);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps: Readonly<ClusterStatusProps>): void {
|
||||
if (prevProps.cluster.id !== this.props.cluster.id) {
|
||||
this.isReconnecting = false;
|
||||
this.authOutput = [];
|
||||
}
|
||||
}
|
||||
|
||||
reconnect = async () => {
|
||||
this.authOutput = [];
|
||||
this.isReconnecting = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user