Skip to content

Commit

Permalink
fix #180
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmx committed Nov 18, 2023
1 parent b84d09a commit 1b731bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions web/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ body {
}

.node-conn-keyed {
background-color: var(--am3-conntable-conn-keyed-bg-color);
color: var(--am3-conntable-conn-keyed-color);
background-color: var(--am3-conntable-conn-keyed-bg-color) !important;
color: var(--am3-conntable-conn-keyed-color) !important;
}

.node-conn-noconn {
background-color: var(--am3-conntable-conn-noconn-bg-color);
color: var(--am3-conntable-conn-noconn-color);
background-color: var(--am3-conntable-conn-noconn-bg-color) !important;
color: var(--am3-conntable-conn-noconn-color) !important;
}

.node-bi {
Expand Down
15 changes: 8 additions & 7 deletions web/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,16 @@ function nodeConnTable(conns, keyed, keyednode) {
rowclass = "node-conn-noconn";
}

console.log(`${x}: ${rowclass}`);
row = row.concat(`
<tr class="${rowclass}" onclick="nodeCmdShortcut(${x})">
<th scope="row">${x}</td>
<td>${c.DESC}</td>
<td>${lastXmit}</td>
<td class="d-none d-md-table-cell">${c.CTIME}</td>
<td class="d-none d-md-table-cell">${c.DIR}</td>
<td class="d-none d-md-table-cell">${c.CSTATE}</td>
<td class="d-none d-md-table-cell">${c.MODE}</td>
<th scope="row" class=${rowclass}>${x}</td>
<td class=${rowclass}>${c.DESC}</td>
<td class=${rowclass}>${lastXmit}</td>
<td class="d-none d-md-table-cell ${rowclass}">${c.CTIME}</td>
<td class="d-none d-md-table-cell ${rowclass}">${c.DIR}</td>
<td class="d-none d-md-table-cell ${rowclass}">${c.CSTATE}</td>
<td class="d-none d-md-table-cell ${rowclass}">${c.MODE}</td>
</tr>`);
}
} else {
Expand Down

0 comments on commit 1b731bf

Please sign in to comment.