Skip to content

Commit

Permalink
Wrap graph server selection checkbox into label
Browse files Browse the repository at this point in the history
  • Loading branch information
mjezek-dev committed May 20, 2023
1 parent f12cddf commit 205661b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 205661b

Please sign in to comment.