Cleaning up the restart.

This commit is contained in:
Vitor Pamplona 2024-01-28 19:30:04 -05:00
parent 3d0006946b
commit 0100def187
2 changed files with 6 additions and 3 deletions

View File

@ -73,9 +73,12 @@ const fetchAndBroadcast = async () => {
$('#broadcasting-progress').css('visibility', 'visible')
$('#broadcasting-progress').prop('max', relays.length)
$('#checking-relays-header').html("")
$('#checking-relays').html("<tr id=\"checking-relays-header\"></tr>")
$('#checking-relays-header-box').css('display', 'flex')
$('#checking-relays-box').css('display', 'flex')
$('#checking-relays-header').html("<th>Relay</th><th>Status</th><th>From Key</th><th>About Key</th><th>Events</th>")
$('#checking-relays-header').html("<th>Relay</th><th>Status</th><th></th><th></th><th>Events</th>")
await broadcastEvents(data)
}
@ -156,7 +159,7 @@ const broadcast = async (data) => {
$('#checking-relays-header-box').css('display', 'flex')
$('#checking-relays-box').css('display', 'flex')
$('#checking-relays-header').html("<th>Relay</th><th>Status</th><th>From Key</th><th>About Key</th><th>Events</th>")
$('#checking-relays-header').html("<th>Relay</th><th>Status</th><th></th><th></th><th>Events</th>")
await broadcastEvents(data)

View File

@ -115,7 +115,7 @@ const displayRelayStatus = (relayStatusAndCount) => {
)
} else {
$('#checking-relays-header').html("")
$('#checking-relays').html("")
$('#checking-relays').html("<tr id=\"checking-relays-header\"></tr>")
}
}