mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
early draft of showing load progress of a session loaded through url
This commit is contained in:
parent
00bd4364f0
commit
0d54f88670
@ -16,8 +16,10 @@ limitations under the License.
|
|||||||
|
|
||||||
import {SessionView} from "./session/SessionView.js";
|
import {SessionView} from "./session/SessionView.js";
|
||||||
import {LoginView} from "./login/LoginView.js";
|
import {LoginView} from "./login/LoginView.js";
|
||||||
|
import {SessionLoadView} from "./login/SessionLoadView.js";
|
||||||
import {SessionPickerView} from "./login/SessionPickerView.js";
|
import {SessionPickerView} from "./login/SessionPickerView.js";
|
||||||
import {TemplateView} from "./general/TemplateView.js";
|
import {TemplateView} from "./general/TemplateView.js";
|
||||||
|
import {StaticView} from "./general/StaticView.js";
|
||||||
import {SwitchView} from "./general/SwitchView.js";
|
import {SwitchView} from "./general/SwitchView.js";
|
||||||
|
|
||||||
export class BrawlView {
|
export class BrawlView {
|
||||||
@ -38,6 +40,10 @@ export class BrawlView {
|
|||||||
return new LoginView(this._vm.loginViewModel);
|
return new LoginView(this._vm.loginViewModel);
|
||||||
case "picker":
|
case "picker":
|
||||||
return new SessionPickerView(this._vm.sessionPickerViewModel);
|
return new SessionPickerView(this._vm.sessionPickerViewModel);
|
||||||
|
case "redirecting":
|
||||||
|
return new StaticView(t => t.p("Redirecting..."));
|
||||||
|
case "loading":
|
||||||
|
return new SessionLoadView(this._vm.sessionLoadViewModel);
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unknown section: ${this._vm.activeSection}`);
|
throw new Error(`Unknown section: ${this._vm.activeSection}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user