mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
hide navigation only if attach succeeds
Signed-off-by: Luca Kröger <l.kroeger01@gmail.com>
This commit is contained in:
parent
2bc56a0383
commit
77de89d0bf
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user