mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 19:44:35 +00:00
fix(web): webout tab item fixed in studio page
This commit is contained in:
@@ -14,7 +14,8 @@ import {
|
|||||||
Select,
|
Select,
|
||||||
SelectChangeEvent,
|
SelectChangeEvent,
|
||||||
Tab,
|
Tab,
|
||||||
Tooltip
|
Tooltip,
|
||||||
|
Typography
|
||||||
} from '@mui/material'
|
} from '@mui/material'
|
||||||
import { styled } from '@mui/material/styles'
|
import { styled } from '@mui/material/styles'
|
||||||
|
|
||||||
@@ -137,6 +138,9 @@ const SASjsEditor = ({
|
|||||||
const content = localStorage.getItem('fileContent') ?? ''
|
const content = localStorage.getItem('fileContent') ?? ''
|
||||||
setFileContent(content)
|
setFileContent(content)
|
||||||
}
|
}
|
||||||
|
setLog('')
|
||||||
|
setWebout('')
|
||||||
|
setTab('1')
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [selectedFilePath])
|
}, [selectedFilePath])
|
||||||
|
|
||||||
@@ -332,9 +336,14 @@ const SASjsEditor = ({
|
|||||||
<TabList onChange={handleTabChange} centered>
|
<TabList onChange={handleTabChange} centered>
|
||||||
<StyledTab label="Code" value="1" />
|
<StyledTab label="Code" value="1" />
|
||||||
<StyledTab label="Log" value="2" />
|
<StyledTab label="Log" value="2" />
|
||||||
<Tooltip title="Displays content from the _webout fileref">
|
<StyledTab
|
||||||
<StyledTab label="Webout" value="3" />
|
label={
|
||||||
</Tooltip>
|
<Tooltip title="Displays content from the _webout fileref">
|
||||||
|
<Typography>Webout</Typography>
|
||||||
|
</Tooltip>
|
||||||
|
}
|
||||||
|
value="3"
|
||||||
|
/>
|
||||||
</TabList>
|
</TabList>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user