remove loading section in BrawlView

This commit is contained in:
Bruno Windels 2020-04-22 20:49:49 +02:00
parent a19e541e1e
commit 96aa4f83b9
2 changed files with 0 additions and 7 deletions

View file

@ -11,7 +11,6 @@ export class BrawlViewModel extends EventEmitter {
this._storageFactory = storageFactory;
this._clock = clock;
this._loading = false;
this._error = null;
this._sessionViewModel = null;
this._loginViewModel = null;
@ -75,8 +74,6 @@ export class BrawlViewModel extends EventEmitter {
get activeSection() {
if (this._error) {
return "error";
} else if(this._loading) {
return "loading";
} else if (this._sessionViewModel) {
return "session";
} else if (this._loginViewModel) {
@ -86,11 +83,9 @@ export class BrawlViewModel extends EventEmitter {
}
}
_setSection(setter) {
// clear all members the activeSection depends on
this._error = null;
this._loading = false;
this._sessionViewModel = null;
this._loginViewModel = null;
this._sessionPickerViewModel = null;

View file

@ -16,8 +16,6 @@ export class BrawlView {
switch (this._vm.activeSection) {
case "error":
return new StatusView({header: "Something went wrong", message: this._vm.errorText});
case "loading":
return new StatusView({header: "Loading", message: this._vm.loadingText});
case "session":
return new SessionView(this._vm.sessionViewModel);
case "login":