From d2de9dc13ef2e980286dd03cca5e22cea443ed0c Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Mon, 1 May 2023 07:28:23 +0300 Subject: [PATCH] fix(editor): fixed log/webout/print tabs --- web/src/containers/Studio/editor.tsx | 71 +++++++++++++++++----------- 1 file changed, 43 insertions(+), 28 deletions(-) diff --git a/web/src/containers/Studio/editor.tsx b/web/src/containers/Studio/editor.tsx index 02964c1..8dd84c9 100644 --- a/web/src/containers/Studio/editor.tsx +++ b/web/src/containers/Studio/editor.tsx @@ -62,6 +62,7 @@ const SASjsEditor = ({ selectedRunTime, showDiff, webout, + printOutput, Dialog, handleChangeRunTime, handleDiffEditorDidMount, @@ -153,30 +154,35 @@ const SASjsEditor = ({ > - - ) : ( - '' - ) - } - onClick={() => { - const logWrapper = document.querySelector(`#logWrapper`) + {log && ( + + ) : ( + '' + ) + } + onClick={() => { + const logWrapper = document.querySelector(`#logWrapper`) - if (logWrapper) logWrapper.scrollTop = 0 - }} - /> - - Webout - - } - value="webout" - /> + if (logWrapper) logWrapper.scrollTop = 0 + }} + /> + )} + {webout && ( + + Webout + + } + value="webout" + /> + )} + {printOutput && } @@ -222,11 +228,20 @@ const SASjsEditor = ({ )} - -
-
{webout}
-
-
+ {webout && ( + +
+
{webout}
+
+
+ )} + {printOutput && ( + +
+
{printOutput}
+
+
+ )} )}