Get server console page rendering (mostly) correctly

This commit is contained in:
Dane Everitt 2020-07-04 15:40:41 -07:00
parent 43ff67238c
commit 1e163aa792
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
18 changed files with 140 additions and 160 deletions

View file

@ -39,6 +39,7 @@ export default ({ server }: { server: Server }) => {
useEffect(() => {
getStats().then(() => {
// @ts-ignore
interval.current = setInterval(() => getStats(), 20000);
});
@ -79,7 +80,7 @@ export default ({ server }: { server: Server }) => {
<div css={tw`w-1/3 flex items-baseline relative`}>
{!stats ?
!statsError ?
<SpinnerOverlay size={'small'} visible={true} backgroundOpacity={0.25}/>
<SpinnerOverlay size={'small'} visible backgroundOpacity={0.25}/>
:
server.isInstalling ?
<div css={tw`flex-1 text-center`}>