forked from MapComplete/MapComplete
Fix statistics
This commit is contained in:
parent
25ec71aff1
commit
3aeeb3ad87
5 changed files with 45 additions and 11 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import {Utils} from "./Utils";
|
||||
import AllThemesGui from "./UI/AllThemesGui";
|
||||
import {QueryParameters} from "./Logic/Web/QueryParameters";
|
||||
import StatisticsGUI from "./UI/StatisticsGUI";
|
||||
import {FixedUiElement} from "./UI/Base/FixedUiElement";
|
||||
|
||||
|
||||
const layout = QueryParameters.GetQueryParameter("layout", undefined).data ?? ""
|
||||
|
|
@ -19,4 +21,12 @@ if (layout !== "") {
|
|||
|
||||
Utils.DisableLongPresses()
|
||||
document.getElementById("decoration-desktop").remove();
|
||||
new AllThemesGui().setup();
|
||||
const mode = QueryParameters.GetQueryParameter("mode", "map", "The mode the application starts in, e.g. 'statistics'")
|
||||
|
||||
if (mode.data === "statistics") {
|
||||
console.log("Statistics mode!")
|
||||
new FixedUiElement("").AttachTo("centermessage")
|
||||
new StatisticsGUI().SetClass("w-full h-full").AttachTo("topleft-tools")
|
||||
} else{
|
||||
new AllThemesGui().setup();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue