diff --git a/Client/index.ts b/Client/index.ts index bbd326e..7bd9272 100644 --- a/Client/index.ts +++ b/Client/index.ts @@ -69,7 +69,7 @@ function logout() { if (result['logout'] == true) {m.route.set("/blankpage")} }) .finally(() => { - location.href = "/index.html" + setTimeout(() => { location.href = "/index.html" }, 1000) }) } @@ -86,6 +86,19 @@ const hello: m.Component = { } } +const loggedout: m.Component = { + view: () => { + return m("h1", { + style: { + display: "flex", + justifyContent: "center", + alignItems: "center", + height: "100%" + } + }, "Sie sind nicht mehr angemeldet!") + } +} + const hello2: m.Component = { view: (vnode) => { return m("ul", @@ -174,8 +187,8 @@ if (check_currentuser() == false) { m.route.set("/login") } -m.route(gridMountpoints.main, "/blankpage", { - "/blankpage": hello, +m.route(gridMountpoints.main, "/kundenliste", { + "/blankpage": loggedout, "/usermanagement": appmanagementpage, "/changepassword": changepasswordscreen, "/login": loginscreen,