forked from mystiq/hydrogen-web
early draft of showing load progress of a session loaded through url
This commit is contained in:
parent
00bd4364f0
commit
0d54f88670
1 changed files with 6 additions and 0 deletions
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue