Improved waiting indicator

This commit is contained in:
2019-07-05 12:51:54 +02:00
parent 19e5a7df02
commit a17faa9482
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import {
} from '../base/text'; } from '../base/text';
const getColor = (code) => { const getColor = (code) => {
if (code === 0) { if (code === 'Error') {
return '#c0392b'; return '#c0392b';
} }
if (code >= 500) { if (code >= 500) {
@@ -37,7 +37,7 @@ const Status = ({
}) => ( }) => (
<Wrapper> <Wrapper>
<Body>{code}</Body> <Body>{code}</Body>
<Icon code={code} /> {code !== 'Waiting' && <Icon code={code} />}
</Wrapper> </Wrapper>
) )

View File

@@ -74,7 +74,7 @@ class Network {
headers, headers,
requestHeaders: this.getAllResponseHeaders(), requestHeaders: this.getAllResponseHeaders(),
request: this, request: this,
status: this.status, status: this.status || 'Error',
}); });
}) })
const proxiedSend = this.send; const proxiedSend = this.send;