gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 66/459: overlay fix


From: gnunet
Subject: [reclaim-ui] 66/459: overlay fix
Date: Fri, 11 Jun 2021 23:22:38 +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 326862e672ade2a0d75b3dcf8b564558ba7c939f
Author: Alexia Pagkopoulou <a.pagkopoulou@tum.de>
AuthorDate: Mon May 27 11:19:44 2019 +0200

    overlay fix
---
 src/app/identity-list/identity-list.component.html |  4 ++--
 src/app/identity-list/identity-list.component.ts   | 20 ++++++++++++++------
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.html 
b/src/app/identity-list/identity-list.component.html
index edaed48..a5a13f3 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -10,8 +10,8 @@
 </div>
 
 <div *ngIf="!isConnected(); else emptyIdList" 
-               style="text-align: center;" class="alert alert-danger 
alert-dismissible fade show" role="alert">
-GNUnet is dead, rip.<br/><br/>
+               style="text-align: center; font-size: 1.75em;" class="alert 
alert-danger alert-dismissible fade show" role="alert">
+       <strong>GNUnet is not running.</strong>
 </div>
 
 <ng-template #emptyIdList>
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index cbaab32..496792f 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -2,7 +2,8 @@ import 'rxjs/add/observable/forkJoin';
 
 import {Component, OnInit} from '@angular/core';
 import {ActivatedRoute, Router} from '@angular/router';
-import {Observable} from 'rxjs/Rx'
+import {Observable} from 'rxjs/Rx';
+import {catchError} from 'rxjs/operators';
 
 import {Attribute} from '../attribute';
 import {GnsService} from '../gns.service';
@@ -33,7 +34,8 @@ export class IdentityListComponent implements OnInit {
   identityInEditName: string;
   identityNameMapper: any;
   showTicketsIdentity: Identity;
-  showConfirmDelete: any;
+       showConfirmDelete: any;
+       connected: any;
 
   constructor(private route: ActivatedRoute, private router: Router,
               private oidcService: OpenIdService,
@@ -53,7 +55,8 @@ export class IdentityListComponent implements OnInit {
     this.newAttribute = new Attribute ('', '', '', 'STRING');
     this.requestedAttributes = {};
     this.missingAttributes = {};
-    this.clientName = "-";
+               this.clientName = "-";
+               this.connected = false;
     this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
     // On opening the options page, fetch stored settings and update the UI 
with
     // them.
@@ -483,11 +486,16 @@ export class IdentityListComponent implements OnInit {
       identities.forEach(identity => {
         this.updateAttributes(identity);
         this.updateTickets(identity);
-      });
-    });
+                       });
+                       this.connected = true;
+               },
+                       error => {
+                               console.log(error);
+                               this.connected = false
+                       });
        }
 
        isConnected() {
-               //TODO
+               return this.connected;
        }
 }

-- 
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]