[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 238/459: improved error massage
From: |
gnunet |
Subject: |
[reclaim-ui] 238/459: improved error massage |
Date: |
Fri, 11 Jun 2021 23:25:30 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.
commit 5f3c09f047f691e9c46fc2c88b0a808882de0f8e
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Wed Jul 15 10:27:19 2020 +0200
improved error massage
---
src/app/edit-attestations/edit-attestations.component.html | 2 +-
src/app/edit-attestations/edit-attestations.component.ts | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/app/edit-attestations/edit-attestations.component.html
b/src/app/edit-attestations/edit-attestations.component.html
index a551062..20c27fb 100644
--- a/src/app/edit-attestations/edit-attestations.component.html
+++ b/src/app/edit-attestations/edit-attestations.component.html
@@ -88,7 +88,7 @@
<!--Email not found Warning-->
<div *ngIf="!emailNotFoundAlertClosed && webfingerEmail==''"
class="alert alert-danger alert-dismissible fade show my-2"
role="alert">
- <span class="fa fa-warning"></span> No account found with this email
+ <span class="fa fa-warning"></span> {{errorMassage}}
</div>
<button *ngIf="!newIdProviderDiscovered()" class="btn btn-primary mb-4
fhg-link" (click)="discoverIdProvider()">
<span class="fa fa-openid"></span> Link account
diff --git a/src/app/edit-attestations/edit-attestations.component.ts
b/src/app/edit-attestations/edit-attestations.component.ts
index fd3f9de..e5bcb7d 100644
--- a/src/app/edit-attestations/edit-attestations.component.ts
+++ b/src/app/edit-attestations/edit-attestations.component.ts
@@ -24,6 +24,7 @@ export class EditAttestationsComponent implements OnInit {
newIdProvider: IdProvider;
webfingerEmail: string;
emailNotFoundAlertClosed: boolean;
+ errorMassage: string;
constructor(private reclaimService: ReclaimService,
private identityService: IdentityService,
@@ -38,6 +39,7 @@ export class EditAttestationsComponent implements OnInit {
this.newIdProvider = new IdProvider ('', '', '');
this.webfingerEmail = '';
this.emailNotFoundAlertClosed = true;
+ this.errorMassage = '';
this.loadIdProviderFromLocalStorage();
this.attestations = [];
if (this.newIdProvider.url !== ''){
@@ -269,9 +271,13 @@ export class EditAttestationsComponent implements OnInit {
},
error => {
if (error.status == 404){
- this.emailNotFoundAlertClosed = false;
- setTimeout(() => this.emailNotFoundAlertClosed = true, 20000);
+ this.errorMassage = 'No account found with this email'
+ }
+ else{
+ this.errorMassage = 'An Error has occured - This may have been caused
by a wrong e-mail address'
}
+ this.emailNotFoundAlertClosed = false;
+ setTimeout(() => this.emailNotFoundAlertClosed = true, 20000);
this.webfingerEmail = '';
console.log (error);
});
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 230/459: fix webfinger, (continued)
- [reclaim-ui] 230/459: fix webfinger, gnunet, 2021/06/11
- [reclaim-ui] 226/459: nothing important, gnunet, 2021/06/11
- [reclaim-ui] 210/459: new Attestation created, gnunet, 2021/06/11
- [reclaim-ui] 202/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 196/459: issuer discoverable, gnunet, 2021/06/11
- [reclaim-ui] 213/459: Attestation is added after account is linked, gnunet, 2021/06/11
- [reclaim-ui] 215/459: merge, gnunet, 2021/06/11
- [reclaim-ui] 211/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 223/459: button label changed, gnunet, 2021/06/11
- [reclaim-ui] 229/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 238/459: improved error massage,
gnunet <=
- [reclaim-ui] 225/459: added logout url to webfinger, gnunet, 2021/06/11
- [reclaim-ui] 212/459: Add typescript dependency to make modules happy., gnunet, 2021/06/11
- [reclaim-ui] 239/459: -fix expiration date display, gnunet, 2021/06/11
- [reclaim-ui] 231/459: maing, gnunet, 2021/06/11
- [reclaim-ui] 245/459: improved scope display, gnunet, 2021/06/11
- [reclaim-ui] 236/459: redirect after logout from idProvider, gnunet, 2021/06/11
- [reclaim-ui] 255/459: remove env, gnunet, 2021/06/11
- [reclaim-ui] 228/459: redirect to edit-attestation after linking account, gnunet, 2021/06/11
- [reclaim-ui] 237/459: moved IdProvider-Linking to edit-attestations, gnunet, 2021/06/11
- [reclaim-ui] 242/459: more style, gnunet, 2021/06/11