Merge pull request #351 from mjezek09/feat/labeled-checkbox

Wrap graph server selection checkbox into label
This commit is contained in:
Nick Krecklow 2023-05-27 15:36:25 -07:00 committed by GitHub
commit 157962324d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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