Wrap graph server selection checkbox into label

This commit is contained in:
mjezek 2023-05-20 13:24:50 +02:00
parent f12cddf74e
commit 205661b737
No known key found for this signature in database
GPG Key ID: 724CD28A57A1A1BE

@ -110,10 +110,10 @@ export class SocketManager {
.forEach(serverName => {
const serverRegistration = this._app.serverRegistry.getServerRegistration(serverName)
controlsHTML += `<td>
controlsHTML += `<td><label>
<input type="checkbox" class="graph-control" minetrack-server-id="${serverRegistration.serverId}" ${serverRegistration.isVisible ? 'checked' : ''}>
${serverName}
</input></td>`
</label></td>`
// Occasionally break table rows using a magic number
if (++lastRowCounter % 6 === 0) {