1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

fix(web): webout tab item fixed in studio page

This commit is contained in:
2022-07-26 23:53:07 +05:00
parent 3b1fcb937d
commit 7cdffe30e3

View File

@@ -14,7 +14,8 @@ import {
Select,
SelectChangeEvent,
Tab,
Tooltip
Tooltip,
Typography
} from '@mui/material'
import { styled } from '@mui/material/styles'
@@ -137,6 +138,9 @@ const SASjsEditor = ({
const content = localStorage.getItem('fileContent') ?? ''
setFileContent(content)
}
setLog('')
setWebout('')
setTab('1')
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedFilePath])
@@ -332,9 +336,14 @@ const SASjsEditor = ({
<TabList onChange={handleTabChange} centered>
<StyledTab label="Code" value="1" />
<StyledTab label="Log" value="2" />
<Tooltip title="Displays content from the _webout fileref">
<StyledTab label="Webout" value="3" />
</Tooltip>
<StyledTab
label={
<Tooltip title="Displays content from the _webout fileref">
<Typography>Webout</Typography>
</Tooltip>
}
value="3"
/>
</TabList>
</Box>