From: Lucas Di Pentima Date: Mon, 4 Jul 2022 20:34:51 +0000 (-0300) Subject: 18975: Sets log viewer's "follow mode" mode ON by default. X-Git-Tag: 2.5.0~47^2~6 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/92e2168c33e2ae98e03fae72520dd8ec3e4a1150 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 --- 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(() => {