Display error in loading state

This commit is contained in:
Simon Ser 2022-09-12 13:41:23 +02:00
parent 54e1fc93d9
commit 4964782c30

View file

@ -1752,7 +1752,11 @@ export default class App extends Component {
render() {
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;