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:
1 parent
2bc56a0383
commit
77de89d0bf
1 file changed
+2
-1
@@ -46,7 +46,6 @@ export interface PodAttachMenuProps extends Renderer.Component.KubeObjectMenuPro
|
|||||||
|
|
||||||
export class PodAttachMenu extends React.Component<PodAttachMenuProps> {
|
export class PodAttachMenu extends React.Component<PodAttachMenuProps> {
|
||||||
async attachToPod(container?: string) {
|
async attachToPod(container?: string) {
|
||||||
Navigation.hideDetails();
|
|
||||||
const { object: pod } = this.props;
|
const { object: pod } = this.props;
|
||||||
const containerParam = container ? `-c ${container}` : "";
|
const containerParam = container ? `-c ${container}` : "";
|
||||||
let command = `kubectl attach -i -t -n ${pod.getNs()} ${pod.getName()} ${containerParam}`;
|
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,
|
enter: true,
|
||||||
tabId: shell.id
|
tabId: shell.id
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Navigation.hideDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in new issue
Block a user