mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Small improvements to site breadcrumbs
This commit is contained in:
parent
8dab5dfa57
commit
07dd42d981
1
.gitignore
vendored
1
.gitignore
vendored
@ -63,6 +63,7 @@ src/rust/long_term_stats/site_build/node_modules
|
||||
src/rust/long_term_stats/site_build/output
|
||||
src/rust/long_term_stats/site_build/package-lock.json
|
||||
src/rust/long_term_stats/wasm_pipe/staging
|
||||
src/rust/long_term_stats/lts_node/deploy.sh
|
||||
|
||||
# Ignore Rust build artifacts
|
||||
src/rust/target
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@ export class RootBreadcrumbs implements Component {
|
||||
|
||||
wireup(): void {
|
||||
let div = document.getElementById("siteName") as HTMLDivElement;
|
||||
div.innerHTML = "Root | <select id='siteChildren'></select>";
|
||||
div.innerHTML = "<a onclick='window.router.goto(\"#dashboard\")'>Root</a> | <select id='siteChildren'></select>";
|
||||
request_root_parents();
|
||||
}
|
||||
|
||||
|
@ -24,8 +24,9 @@ export class SiteBreadcrumbs implements Component {
|
||||
let crumbs = event.SiteParents.data.reverse();
|
||||
for (let i = 0; i < crumbs.length-1; i++) {
|
||||
let url = makeUrl(crumbs[i][0], crumbs[i][1]);
|
||||
html += "<a href='#" + url + "' onclick='window.router.goto(\"" + url + "\")'>" + crumbs[i][1] + "</a> | ";
|
||||
html += "<a onclick='window.router.goto(\"" + url + "\")'>" + crumbs[i][1] + "</a> | ";
|
||||
}
|
||||
html += "<a onclick='window.router.goto(\"#dashboard\")'>Root</a> |";
|
||||
html += crumbs[crumbs.length-1][1] + " | ";
|
||||
html += "<select id='siteChildren'></select>";
|
||||
div.innerHTML = html;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12" id="nodeStatus">
|
||||
<h1>Dashboard</h1>
|
||||
<h1><i class="fa-solid fa-gauge"></i> Dashboard</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user