hide navigation only if attach succeeds

Signed-off-by: Luca Kröger <l.kroeger01@gmail.com>
This commit is contained in:
Luca Kröger committed 2021-06-01 16:54:45 +02:00
1 parent 2bc56a0383
commit 77de89d0bf
1 file changed
+2 -1
+2 -1
View File
@@ -46,7 +46,6 @@ export interface PodAttachMenuProps extends Renderer.Component.KubeObjectMenuPro
export class PodAttachMenu extends React.Component<PodAttachMenuProps> {
async attachToPod(container?: string) {
Navigation.hideDetails();
const { object: pod } = this.props;
const containerParam = container ? `-c ${container}` : "";
let command = `kubectl attach -i -t -n ${pod.getNs()} ${pod.getName()} ${containerParam}`;
@@ -63,6 +62,8 @@ export class PodAttachMenu extends React.Component<PodAttachMenuProps> {
enter: true,
tabId: shell.id
});
Navigation.hideDetails();
}
render() {