mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Tree is fully redactable.
This commit is contained in:
parent
4580f499fc
commit
0770e9fe78
@ -18,6 +18,7 @@ export function redactCell(cell) {
|
||||
}
|
||||
|
||||
function cssRedact() {
|
||||
console.log("cssRedact called");
|
||||
if (isRedacted()) {
|
||||
let r = document.querySelector(':root');
|
||||
r.style.setProperty('--redact', 'blur(4px)');
|
||||
|
@ -3,7 +3,6 @@ import {checkForUpgrades} from "./toasts/version_check";
|
||||
import {initRedact} from "./helpers/redact";
|
||||
import {sponsorTag} from "./toasts/sponsor_us";
|
||||
|
||||
initRedact();
|
||||
checkForUpgrades("toasts");
|
||||
sponsorTag("toasts")
|
||||
const dashboard = new Dashboard("dashboard");
|
||||
|
@ -1,4 +1,5 @@
|
||||
import {clearDiv} from "./helpers/builders";
|
||||
import {initRedact} from "./helpers/redact";
|
||||
|
||||
function initDayNightMode() {
|
||||
const currentTheme = localStorage.getItem('theme');
|
||||
@ -149,6 +150,7 @@ function setupReload() {
|
||||
|
||||
initLogout();
|
||||
initDayNightMode();
|
||||
initRedact();
|
||||
getDeviceCounts();
|
||||
titleAndLts();
|
||||
setupSearch();
|
||||
|
@ -114,14 +114,14 @@ function buildRow(i, depth=0) {
|
||||
nodeName += "─";
|
||||
}
|
||||
if (depth > 0) nodeName += " ";
|
||||
nodeName += "<a href='/tree.html?parent=" + nodeId + "'>";
|
||||
nodeName += "<a href='/tree.html?parent=" + nodeId + "' class='redactable'>";
|
||||
nodeName += node.name;
|
||||
nodeName += "</a>";
|
||||
if (node.type !== null) {
|
||||
nodeName += " (" + node.type + ")";
|
||||
}
|
||||
col.innerHTML = nodeName;
|
||||
col.classList.add("small", "redactable");
|
||||
col.classList.add("small");
|
||||
row.appendChild(col);
|
||||
|
||||
col = document.createElement("td");
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<h5><i class="fa fa-tree"></i> Network Tree (<span id="nodeName"></span>)</h5>
|
||||
<h5><i class="fa fa-tree"></i> Network Tree (<span id="nodeName" class="redactable"></span>)</h5>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td style="font-weight: bold;">Limits:</td>
|
||||
|
Loading…
Reference in New Issue
Block a user