Tables show "fetching" message

This commit is contained in:
Herbert Wolverson 2025-01-31 14:11:30 -06:00
parent bffcb43f51
commit 07fdc48173
4 changed files with 8 additions and 4 deletions

View File

@ -68,8 +68,9 @@ export class Top10Downloaders extends BaseDashlet {
let seconds = periodNameToSeconds(window.timePeriods.activePeriod);
let spinnerDiv = document.createElement("div");
spinnerDiv.innerHTML = "<i class='fas fa-spinner fa-spin'></i> Fetching Insight Data...";
let target = document.getElementById(this.id);
clearDashDiv(this.id, target);
document.getElementById(this.id).appendChild(spinnerDiv);
target.appendChild(spinnerDiv);
$.get("/local-api/ltsTop10Downloaders/" + seconds, (data) => {
let target = document.getElementById(this.id);

View File

@ -144,8 +144,9 @@ export class Top10FlowsBytes extends BaseDashlet {
let seconds = periodNameToSeconds(window.timePeriods.activePeriod);
let spinnerDiv = document.createElement("div");
spinnerDiv.innerHTML = "<i class='fas fa-spinner fa-spin'></i> Fetching Insight Data...";
let target = document.getElementById(this.id);
clearDashDiv(this.id, target);
document.getElementById(this.id).appendChild(spinnerDiv);
target.appendChild(spinnerDiv);
$.get("/local-api/ltsTopFlows/" + seconds, (data) => {
let target = document.getElementById(this.id);

View File

@ -68,8 +68,9 @@ export class Worst10Downloaders extends BaseDashlet {
let seconds = periodNameToSeconds(window.timePeriods.activePeriod);
let spinnerDiv = document.createElement("div");
spinnerDiv.innerHTML = "<i class='fas fa-spinner fa-spin'></i> Fetching Insight Data...";
let target = document.getElementById(this.id);
clearDashDiv(this.id, target);
document.getElementById(this.id).appendChild(spinnerDiv);
target.appendChild(spinnerDiv);
$.get("/local-api/ltsWorst10Rtt/" + seconds, (data) => {
let target = document.getElementById(this.id);

View File

@ -68,8 +68,9 @@ export class Worst10Retransmits extends BaseDashlet {
let seconds = periodNameToSeconds(window.timePeriods.activePeriod);
let spinnerDiv = document.createElement("div");
spinnerDiv.innerHTML = "<i class='fas fa-spinner fa-spin'></i> Fetching Insight Data...";
let target = document.getElementById(this.id);
clearDashDiv(this.id, target);
document.getElementById(this.id).appendChild(spinnerDiv);
target.appendChild(spinnerDiv);
$.get("/local-api/ltsWorst10Rxmit/" + seconds, (data) => {
let target = document.getElementById(this.id);