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';
const getColor = (code) => {
if (code === 0) {
if (code === 'Error') {
return '#c0392b';
}
if (code >= 500) {
@@ -37,7 +37,7 @@ const Status = ({
}) => (
<Wrapper>
<Body>{code}</Body>
<Icon code={code} />
{code !== 'Waiting' && <Icon code={code} />}
</Wrapper>
)

View File

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