mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Merge pull request #1143 from vector-im/fix-1142
Fix missing UI elements in AccountSetupView
This commit is contained in:
commit
eae0b1aa75
@ -56,7 +56,7 @@ class DecryptDehydratedDeviceViewModel extends ViewModel {
|
|||||||
super(accountSetupViewModel.options);
|
super(accountSetupViewModel.options);
|
||||||
this._accountSetupViewModel = accountSetupViewModel;
|
this._accountSetupViewModel = accountSetupViewModel;
|
||||||
this._isBusy = false;
|
this._isBusy = false;
|
||||||
this._status = Status.SetupKey;
|
this._status = Status.SetupWithRecoveryKey;
|
||||||
this._error = undefined;
|
this._error = undefined;
|
||||||
this._decryptedCallback = decryptedCallback;
|
this._decryptedCallback = decryptedCallback;
|
||||||
}
|
}
|
||||||
@ -92,15 +92,15 @@ class DecryptDehydratedDeviceViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showPhraseSetup() {
|
showPhraseSetup() {
|
||||||
if (this._status === Status.SetupKey) {
|
if (this._status === Status.SetupWithRecoveryKey) {
|
||||||
this._status = Status.SetupPhrase;
|
this._status = Status.SetupWithPassphrase;
|
||||||
this.emitChange("status");
|
this.emitChange("status");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showKeySetup() {
|
showKeySetup() {
|
||||||
if (this._status === Status.SetupPhrase) {
|
if (this._status === Status.SetupWithPassphrase) {
|
||||||
this._status = Status.SetupKey;
|
this._status = Status.SetupWithRecoveryKey;
|
||||||
this.emitChange("status");
|
this.emitChange("status");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user