mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Unbreak the tree view
This commit is contained in:
parent
db0325bc2d
commit
b2f6961be2
@ -1,7 +1,6 @@
|
|||||||
import {BaseDashlet} from "./base_dashlet";
|
import {BaseDashlet} from "./base_dashlet";
|
||||||
import {clearDashDiv, simpleRow, theading} from "../helpers/builders";
|
import {clearDashDiv, simpleRow, theading} from "../helpers/builders";
|
||||||
import {scaleNumber, scaleNanos} from "../helpers/scaling";
|
import {scaleNumber, scaleNanos} from "../helpers/scaling";
|
||||||
import {redactCell} from "../helpers/redact";
|
|
||||||
|
|
||||||
export class TopTreeSummary extends BaseDashlet {
|
export class TopTreeSummary extends BaseDashlet {
|
||||||
constructor(slot) {
|
constructor(slot) {
|
||||||
@ -43,9 +42,7 @@ export class TopTreeSummary extends BaseDashlet {
|
|||||||
let tbody = document.createElement("tbody");
|
let tbody = document.createElement("tbody");
|
||||||
msg.data.forEach((r) => {
|
msg.data.forEach((r) => {
|
||||||
let row = document.createElement("tr");
|
let row = document.createElement("tr");
|
||||||
let name = simpleRow(r[1].name);
|
row.appendChild(simpleRow(r[1].name));
|
||||||
redactCell(name);
|
|
||||||
row.appendChild(simpleRow(name));
|
|
||||||
row.appendChild(simpleRow(scaleNumber(r[1].current_throughput[0])));
|
row.appendChild(simpleRow(scaleNumber(r[1].current_throughput[0])));
|
||||||
row.appendChild(simpleRow(scaleNumber(r[1].current_throughput[1])));
|
row.appendChild(simpleRow(scaleNumber(r[1].current_throughput[1])));
|
||||||
t.appendChild(row);
|
t.appendChild(row);
|
||||||
|
Loading…
Reference in New Issue
Block a user