mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
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() {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue