mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-25 01:30:17 -06:00
Correct breadcrumb render order
This commit is contained in:
parent
856f9befbe
commit
bf920c8fe0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -22,11 +22,11 @@ export class SiteBreadcrumbs implements Component {
|
||||
let div = document.getElementById("siteName") as HTMLDivElement;
|
||||
let html = "";
|
||||
let crumbs = event.SiteParents.data.reverse();
|
||||
html += "<a onclick='window.router.goto(\"#dashboard\")'>Root</a> |";
|
||||
for (let i = 0; i < crumbs.length-1; i++) {
|
||||
let url = makeUrl(crumbs[i][0], crumbs[i][1]);
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user