mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Tables show "fetching" message
This commit is contained in:
parent
bffcb43f51
commit
07fdc48173
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user