Display error in loading state
This commit is contained in:
parent
54e1fc93d9
commit
4964782c30
1 changed files with 5 additions and 1 deletions
|
@ -1752,7 +1752,11 @@ export default class App extends Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
if (this.state.loading) {
|
if (this.state.loading) {
|
||||||
return html`<section id="connect"></section>`;
|
let error = null;
|
||||||
|
if (this.state.error) {
|
||||||
|
error = html`<form><p class="error-text">${this.state.error}</p></form>`;
|
||||||
|
}
|
||||||
|
return html`<section id="connect">${error}</section>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let activeBuffer = null, activeServer = null, activeBouncerNetwork = null;
|
let activeBuffer = null, activeServer = null, activeBouncerNetwork = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue