CHE-2324: Avoid duplicate call new terminal for dev machine (#2341)

Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
6.19.x
Vitalii Parfonov 2016-09-05 18:19:16 +03:00 committed by GitHub
parent 46648e8143
commit 2d042eeee0
1 changed files with 1 additions and 6 deletions

View File

@ -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());
}
}
/**