mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-30 19:17:11 -05:00
components/buffer-header: print bouncer network error if any
This commit is contained in:
parent
baaf576d82
commit
f0c398a10c
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ export default function BufferHeader(props) {
|
||||||
switch (props.bouncerNetwork.state) {
|
switch (props.bouncerNetwork.state) {
|
||||||
case "disconnected":
|
case "disconnected":
|
||||||
description = "Bouncer disconnected from network";
|
description = "Bouncer disconnected from network";
|
||||||
|
if (props.bouncerNetwork.error) {
|
||||||
|
description += ": " + props.bouncerNetwork.error;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "connecting":
|
case "connecting":
|
||||||
description = "Bouncer connecting to network...";
|
description = "Bouncer connecting to network...";
|
||||||
|
|
Loading…
Reference in a new issue