gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]