1
0
Fork 0
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:
Michael Hollister 2025-04-30 10:32:06 -05:00
parent 0ef502d3a8
commit 1ad346c6b4

View file

@ -52,6 +52,7 @@ function renderIPsAndQRCode() {
return;
}
const connInfoLoading = document.getElementById('connection-information-loading');
const connInfo = document.getElementById('connection-information');
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);
}
else if (addresses.length === 0) {
connInfoLoading.style.display = 'none';
connInfo.style.display = 'none';
connError.style.display = 'block';
@ -93,7 +95,6 @@ function renderIPsAndQRCode() {
calculateQRCodeWidth();
if (!renderedConnectionInfo) {
const connInfoLoading = document.getElementById('connection-information-loading');
connInfoLoading.style.display = 'none';
connInfo.style.display = 'block';
}