From 92e2168c33e2ae98e03fae72520dd8ec3e4a1150 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 4 Jul 2022 17:34:51 -0300 Subject: [PATCH] 18975: Sets log viewer's "follow mode" mode ON by default. This also makes the log viewer to scroll down to the bottom. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- src/views/process-panel/process-log-code-snippet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/process-panel/process-log-code-snippet.tsx b/src/views/process-panel/process-log-code-snippet.tsx index 6ea628e6..1ab25ea1 100644 --- a/src/views/process-panel/process-log-code-snippet.tsx +++ b/src/views/process-panel/process-log-code-snippet.tsx @@ -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 & DispatchProp) => { - const [followMode, setFollowMode] = useState(false); + const [followMode, setFollowMode] = useState(true); const scrollRef = useRef(null); useEffect(() => { -- 2.30.2