From 5ca732341a0e2756d0c75e2fb1ad7b9863065df6 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 20 Aug 2021 20:09:12 +0530 Subject: [PATCH] Rename defaultHomeserver to homeserver Signed-off-by: RMidhunSuresh --- src/domain/login/LoginViewModel.js | 2 +- src/platform/web/ui/login/LoginView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/login/LoginViewModel.js b/src/domain/login/LoginViewModel.js index 9e8ed146..61fd3967 100644 --- a/src/domain/login/LoginViewModel.js +++ b/src/domain/login/LoginViewModel.js @@ -45,7 +45,7 @@ export class LoginViewModel extends ViewModel { get passwordLoginViewModel() { return this._passwordLoginViewModel; } get startSSOLoginViewModel() { return this._startSSOLoginViewModel; } get completeSSOLoginViewModel(){ return this._completeSSOLoginViewModel; } - get defaultHomeServer() { return this._homeserver; } + get homeserver() { return this._homeserver; } get errorMessage() { return this._errorMessage; } get showHomeserver() { return !this._hideHomeserver; } get cancelUrl() { return this.urlCreator.urlForSegment("session"); } diff --git a/src/platform/web/ui/login/LoginView.js b/src/platform/web/ui/login/LoginView.js index ad7f72a4..1a146051 100644 --- a/src/platform/web/ui/login/LoginView.js +++ b/src/platform/web/ui/login/LoginView.js @@ -34,7 +34,7 @@ export class LoginView extends TemplateView { id: "homeserver", type: "text", placeholder: vm.i18n`Your matrix homeserver`, - value: vm.defaultHomeServer, + value: vm.homeserver, disabled: vm => vm.isBusy, onChange: event => vm.updateHomeServer(event.target.value), })