From 104ac85295b7f9d31f6b38fdd94e0c6319a4c753 Mon Sep 17 00:00:00 2001 From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com> Date: Tue, 28 Feb 2023 10:36:48 -0400 Subject: [PATCH] Remove the basic terminal from the UI (#1499) --- .../components/pages/node/actions/node-actions-helper.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts b/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts index 76d998f013..959dce1092 100644 --- a/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts +++ b/static/skywire-manager-src/src/app/components/pages/node/actions/node-actions-helper.ts @@ -185,6 +185,8 @@ export class NodeActionsHelper { } terminal() { + // TODO: remove if the basic terminal is going to be removed definitely. + /* const options: SelectableOption[] = [ { icon: 'launch', @@ -210,6 +212,12 @@ export class NodeActionsHelper { }); } }); + */ + + // Open the complete terminal in a new tab. + const protocol = window.location.protocol; + const hostname = window.location.host.replace('localhost:4200', '127.0.0.1:8000'); + window.open(protocol + '//' + hostname + '/pty/' + this.currentNodeKey, '_blank', 'noopener noreferrer'); } back() {