18975: Sets log viewer's "follow mode" mode ON by default.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 4 Jul 2022 20:34:51 +0000 (17:34 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 4 Jul 2022 20:34:51 +0000 (17:34 -0300)
This also makes the log viewer to scroll down to the bottom.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

src/views/process-panel/process-log-code-snippet.tsx

index 6ea628e6b2192b7eaf1d80e2f54578eb69a4b44e..1ab25ea1ecf7d0e454743086821092ac55f45ec4 100644 (file)
@@ -78,7 +78,7 @@ const renderLinks = (fontSize: number, dispatch: Dispatch) => (text: string) =>
 
 export const ProcessLogCodeSnippet = withStyles(styles)(connect()(
     ({classes, lines, fontSize, dispatch, wordWrap}: ProcessLogCodeSnippetProps & WithStyles<CssRules> & DispatchProp) => {
-        const [followMode, setFollowMode] = useState<boolean>(false);
+        const [followMode, setFollowMode] = useState<boolean>(true);
         const scrollRef = useRef<HTMLDivElement>(null);
 
         useEffect(() => {