X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2508b089d2369bf57811f9f96c14c2ee22dd664f..f674f8883fc075170a20ef592a2609e4f521f7b2:/services/workbench2/src/views/virtual-machine-panel/virtual-machine-user-panel.tsx
diff --git a/services/workbench2/src/views/virtual-machine-panel/virtual-machine-user-panel.tsx b/services/workbench2/src/views/virtual-machine-panel/virtual-machine-user-panel.tsx
index 751ca5f190..f75b36a601 100644
--- a/services/workbench2/src/views/virtual-machine-panel/virtual-machine-user-panel.tsx
+++ b/services/workbench2/src/views/virtual-machine-panel/virtual-machine-user-panel.tsx
@@ -18,6 +18,7 @@ import parse from "parse-duration";
import { CopyIcon } from 'components/icon/icon';
import CopyToClipboard from 'react-copy-to-clipboard';
import { snackbarActions, SnackbarKind } from 'store/snackbar/snackbar-actions';
+import { sanitizeHTML } from 'common/html-sanitize';
type CssRules = 'button' | 'codeSnippet' | 'link' | 'linkIcon' | 'rightAlign' | 'cardWithoutMachines' | 'icon' | 'chipsRoot' | 'copyIcon' | 'tableWrapper' | 'webshellButton';
@@ -218,7 +219,7 @@ const virtualMachinesTable = (props: VirtualMachineProps) =>
const command = `ssh ${username}@${it.hostname}${props.hostSuffix}`;
let tokenParam = "";
if (props.tokenLocation === SESSION_STORAGE || props.tokenLocation === EXTRA_TOKEN) {
- tokenParam = `&token=${encodeURIComponent(props.token)}`;
+ tokenParam = `&token=${encodeURIComponent(props.token)}`;
}
const loginHref = `/webshell/?host=${encodeURIComponent(props.webshellUrl + '/' + it.hostname)}&timeout=${props.idleTimeout}&login=${encodeURIComponent(username)}${tokenParam}`;
return
@@ -227,17 +228,17 @@ const virtualMachinesTable = (props: VirtualMachineProps) =>
{
- (lk.properties.groups || []).map((group, i) => (
-
-
-
- ))
+ (lk.properties.groups || []).map((group, i) => (
+
+
+
+ ))
}
{command}
-
+
props.onCopy!("Copied")}>
@@ -252,8 +253,8 @@ const virtualMachinesTable = (props: VirtualMachineProps) =>
size="small"
href={loginHref}
target="_blank"
- rel="noopener noreferrer">
- Log in as {username}
+ rel="noopener">
+ Log in as {username}
;
@@ -269,7 +270,7 @@ const CardSSHSection = (props: VirtualMachineProps) =>
-
+