switching networks works, established server functions
This commit is contained in:
@@ -22,7 +22,7 @@ class AppWindow extends Shadow {
|
||||
|
||||
render() {
|
||||
ZStack(() => {
|
||||
switch(window.currentApp) {
|
||||
switch(global.currentApp) {
|
||||
case "Dashboard":
|
||||
Dashboard()
|
||||
break;
|
||||
@@ -33,17 +33,20 @@ class AppWindow extends Shadow {
|
||||
})
|
||||
.overflow("scroll")
|
||||
.position("absolute")
|
||||
.onEvent("resize", () => {
|
||||
this.rerender()
|
||||
})
|
||||
.width(window.innerWidth - this.calculateWidth(), px)
|
||||
.height(window.innerHeight - this.calculateHeight(), px)
|
||||
.background("var(--app)")
|
||||
.x(this.calculateWidth(), px)
|
||||
.yBottom(this.calculateHeight(), px)
|
||||
.onEvent("resize", () => {
|
||||
this.rerender()
|
||||
})
|
||||
.onEvent("appchange", () => {
|
||||
this.rerender()
|
||||
})
|
||||
.onEvent("networkchange", () => {
|
||||
this.rerender()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user