Skip to content

Commit

Permalink
Tables show "fetching" message
Browse files Browse the repository at this point in the history
  • Loading branch information
thebracket committed Jan 31, 2025
1 parent bffcb43 commit 07fdc48
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 07fdc48

Please sign in to comment.