mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Show current graph period in drop down
This commit is contained in:
parent
b305ff95fc
commit
3fc3dce54c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -40,9 +40,13 @@ window.setInterval(() => {
|
||||
console.log("tick");
|
||||
window.router.ontick();
|
||||
window.bus.updateConnected();
|
||||
let btn = document.getElementById("graphPeriodBtn") as HTMLButtonElement;
|
||||
btn.innerText = window.graphPeriod;
|
||||
}, 1000);
|
||||
|
||||
function changeGraphPeriod(period: string) {
|
||||
window.graphPeriod = period;
|
||||
localStorage.setItem('graphPeriod', period);
|
||||
let btn = document.getElementById("graphPeriodBtn") as HTMLButtonElement;
|
||||
btn.innerText = period;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
</a>
|
||||
|
||||
<div class="dropdown" style="padding: 6px;">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" id="graphPeriodBtn">
|
||||
Graph Period
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
|
Loading…
Reference in New Issue
Block a user