diff --git a/src/domain/BrawlViewModel.js b/src/domain/BrawlViewModel.js index 6e308861..7ecf9f56 100644 --- a/src/domain/BrawlViewModel.js +++ b/src/domain/BrawlViewModel.js @@ -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; diff --git a/src/ui/web/BrawlView.js b/src/ui/web/BrawlView.js index f4325a77..27779dc6 100644 --- a/src/ui/web/BrawlView.js +++ b/src/ui/web/BrawlView.js @@ -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":