forked from CringeStudios/gamja
Display error in loading state
This commit is contained in:
parent
54e1fc93d9
commit
4964782c30
@ -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…
x
Reference in New Issue
Block a user