CHE-2324: Avoid duplicate call new terminal for dev machine (#2341)
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>6.19.x
parent
46648e8143
commit
2d042eeee0
|
|
@ -259,15 +259,10 @@ public class ProcessesPanelPresenter extends BasePresenter implements ProcessesP
|
|||
} else {
|
||||
if (selectedTreeNode.getParent() != null &&
|
||||
selectedTreeNode.getParent().getType() == MACHINE_NODE) {
|
||||
onAddTerminal(appContext.getWorkspaceId(), appContext.getDevMachine().getId());
|
||||
onAddTerminal(appContext.getWorkspaceId(), selectedTreeNode.getParent().getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// no selected node
|
||||
if (appContext.getDevMachine() != null) {
|
||||
onAddTerminal(appContext.getWorkspaceId(), appContext.getDevMachine().getId());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue