From 4964782c3071d6eb962b2f41f385efc756ac0fa2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 12 Sep 2022 13:41:23 +0200 Subject: [PATCH] Display error in loading state --- components/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index dfc4cf7..1568565 100644 --- a/components/app.js +++ b/components/app.js @@ -1752,7 +1752,11 @@ export default class App extends Component { render() { if (this.state.loading) { - return html`
`; + let error = null; + if (this.state.error) { + error = html`

${this.state.error}

`; + } + return html`
${error}
`; } let activeBuffer = null, activeServer = null, activeBouncerNetwork = null;