Merge #1794: Add message that wallet was deleted to wallet member
6273a80637f06cd907c82df203f8e78ec9ace288 Add message that wallet was deleted to wallet member (edouardparis) Pull request description: close #1793 ACKs for top commit: pythcoiner: tACK 6273a806 Tree-SHA512: 9c80861b5e4ef73c697e9ca3232bd434f04b0d7a9bf52f20cd96be6cec49ed1d625aca31ad759f38b5c6a9a800ecaf720149539c86b16e29e4f4abaa9187f81b
This commit is contained in:
commit
d68545e415
@ -129,6 +129,7 @@ pub struct LianaLiteLogin {
|
||||
pub enum ConnectionStep {
|
||||
CheckingAuthFile,
|
||||
CheckEmail,
|
||||
WalletDoesNotExist,
|
||||
EnterOtp {
|
||||
client: AuthClient,
|
||||
backend_api_url: String,
|
||||
@ -186,7 +187,7 @@ impl LianaLiteLogin {
|
||||
self.processing = false;
|
||||
match res {
|
||||
Ok(BackendState::NoWallet(_)) => {
|
||||
self.auth_error = Some("No wallet found for the given email");
|
||||
self.step = ConnectionStep::WalletDoesNotExist;
|
||||
}
|
||||
Ok(BackendState::WalletExists(client, wallet, coins)) => {
|
||||
return Task::perform(
|
||||
@ -339,6 +340,7 @@ impl LianaLiteLogin {
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Task::none()
|
||||
@ -358,6 +360,8 @@ impl LianaLiteLogin {
|
||||
.max_width(500)
|
||||
.spacing(20)
|
||||
.push(match &self.step {
|
||||
ConnectionStep::WalletDoesNotExist => Column::new()
|
||||
.push(text("This wallet was deleted by its creator for all participants and cannot be opened. To access it again, restore it using a backup file or the wallet descriptor.")),
|
||||
ConnectionStep::CheckingAuthFile => Column::new(),
|
||||
ConnectionStep::CheckEmail => Column::new()
|
||||
.spacing(20)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user