From 8c4f025fa475835a2695cef938f37f4fb50bc2f4 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Mon, 18 Apr 2016 09:00:22 +0200 Subject: [PATCH] Ensure we create a new terminal instance for each new pipe. - Prevents new session from continuing in the same terminal as an old one. - This is implemented using react's key behaviour at the moment: When the key changes, react unmounts and remounts the component and all term.js stuff inside of it. Could probably do this more explicitly. --- client/app/scripts/components/embedded-terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/scripts/components/embedded-terminal.js b/client/app/scripts/components/embedded-terminal.js index b4d4c5c26..524bc9e98 100644 --- a/client/app/scripts/components/embedded-terminal.js +++ b/client/app/scripts/components/embedded-terminal.js @@ -22,7 +22,7 @@ export default function EmeddedTerminal({pipe, details}) { // the term.js and creating a new one for the new pipe. return (
-
);