From 0d54f886703302856d38b137cf25db67fdf91293 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 8 Oct 2020 18:23:53 +0200 Subject: [PATCH] early draft of showing load progress of a session loaded through url --- src/ui/web/BrawlView.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/web/BrawlView.js b/src/ui/web/BrawlView.js index ec84c716..21ae539c 100644 --- a/src/ui/web/BrawlView.js +++ b/src/ui/web/BrawlView.js @@ -16,8 +16,10 @@ limitations under the License. import {SessionView} from "./session/SessionView.js"; import {LoginView} from "./login/LoginView.js"; +import {SessionLoadView} from "./login/SessionLoadView.js"; import {SessionPickerView} from "./login/SessionPickerView.js"; import {TemplateView} from "./general/TemplateView.js"; +import {StaticView} from "./general/StaticView.js"; import {SwitchView} from "./general/SwitchView.js"; export class BrawlView { @@ -38,6 +40,10 @@ export class BrawlView { return new LoginView(this._vm.loginViewModel); case "picker": return new SessionPickerView(this._vm.sessionPickerViewModel); + case "redirecting": + return new StaticView(t => t.p("Redirecting...")); + case "loading": + return new SessionLoadView(this._vm.sessionLoadViewModel); default: throw new Error(`Unknown section: ${this._vm.activeSection}`); }