mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Receievers: Fix network fetching and error UI displaying at same time
This commit is contained in:
parent
0ef502d3a8
commit
1ad346c6b4
1 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ function renderIPsAndQRCode() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const connInfoLoading = document.getElementById('connection-information-loading');
|
||||||
const connInfo = document.getElementById('connection-information');
|
const connInfo = document.getElementById('connection-information');
|
||||||
const connError = document.getElementById('connection-error');
|
const connError = document.getElementById('connection-error');
|
||||||
|
|
||||||
|
@ -59,6 +60,7 @@ function renderIPsAndQRCode() {
|
||||||
toast('Network connections has changed, please reconnect sender devices to receiver if you experience issues', ToastIcon.WARNING);
|
toast('Network connections has changed, please reconnect sender devices to receiver if you experience issues', ToastIcon.WARNING);
|
||||||
}
|
}
|
||||||
else if (addresses.length === 0) {
|
else if (addresses.length === 0) {
|
||||||
|
connInfoLoading.style.display = 'none';
|
||||||
connInfo.style.display = 'none';
|
connInfo.style.display = 'none';
|
||||||
connError.style.display = 'block';
|
connError.style.display = 'block';
|
||||||
|
|
||||||
|
@ -93,7 +95,6 @@ function renderIPsAndQRCode() {
|
||||||
|
|
||||||
calculateQRCodeWidth();
|
calculateQRCodeWidth();
|
||||||
if (!renderedConnectionInfo) {
|
if (!renderedConnectionInfo) {
|
||||||
const connInfoLoading = document.getElementById('connection-information-loading');
|
|
||||||
connInfoLoading.style.display = 'none';
|
connInfoLoading.style.display = 'none';
|
||||||
connInfo.style.display = 'block';
|
connInfo.style.display = 'block';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue