1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-15 18:00:05 +00:00

feat(log): use improved log for SAS run time only

This commit is contained in:
Yury Shkoda
2023-04-11 14:18:42 +03:00
parent 3a887dec55
commit 7b12591595
5 changed files with 134 additions and 86 deletions

View File

@@ -16,15 +16,14 @@ const LogTabWithIcons = (props: LogTabProps) => {
gap: 6,
alignItems: 'center'
}}
onClick={() => {
const logWrapper = document.querySelector(`#logWrapper`)
if (logWrapper) logWrapper.scrollTop = 0
}}
>
<span>log</span>
{errors.length && <ErrorOutline color="error" style={{ fontSize: 20 }} />}
{warnings.length && <Warning style={{ fontSize: 20 }} />}{' '}
{errors.length !== 0 && (
<ErrorOutline color="error" style={{ fontSize: 20 }} />
)}
{warnings.length !== 0 && (
<Warning style={{ fontSize: 20, color: 'green' }} />
)}{' '}
</div>
)
}