reparent meshstats to overview

This commit is contained in:
Nils Schneider 2015-03-26 13:18:55 +01:00
parent 1b65918e74
commit a773b8323a

View file

@ -14,7 +14,7 @@ function (Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist,
var sidebar = new Sidebar(document.body) var sidebar = new Sidebar(document.body)
var infobox = new Infobox(config, sidebar, router) var infobox = new Infobox(config, sidebar, router)
var tabs = new Tabs() var tabs = new Tabs()
var newlost = new Container() var overview = new Container()
map = new Map(linkScale, sidebar, router) map = new Map(linkScale, sidebar, router)
document.body.insertBefore(map.div, document.body.firstChild) document.body.insertBefore(map.div, document.body.firstChild)
@ -25,11 +25,12 @@ function (Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist,
nodelist = new Nodelist(router) nodelist = new Nodelist(router)
linklist = new Linklist(linkScale, router) linklist = new Linklist(linkScale, router)
sidebar.add(meshstats) overview.add(meshstats)
overview.add(newnodeslist)
overview.add(lostnodeslist)
sidebar.add(tabs) sidebar.add(tabs)
newlost.add(newnodeslist) tabs.add("Übersicht", overview)
newlost.add(lostnodeslist)
tabs.add("Neu & Verschwunden", newlost)
tabs.add("Alle Knoten", nodelist) tabs.add("Alle Knoten", nodelist)
tabs.add("Verbindungen", linklist) tabs.add("Verbindungen", linklist)