gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 70/459: add spinner


From: gnunet
Subject: [reclaim-ui] 70/459: add spinner
Date: Fri, 11 Jun 2021 23:22:42 +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 2d63b348af0829f0951187bcc0c66bbc2f9dff9f
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Tue Jun 4 17:51:18 2019 +0200

    add spinner
---
 src/app/identity-list/identity-list.component.html |  9 ++++++---
 src/app/identity-list/identity-list.component.ts   | 13 +++++++++----
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.html 
b/src/app/identity-list/identity-list.component.html
index a5a13f3..ca52c1b 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -1,6 +1,9 @@
 <div *ngIf="inOpenIdFlow()" class="alert alert-primary alert-dismissible fade 
show" role="alert">
-  <span class="fa fa-openid"></span>  <strong>"{{ clientName }}"</strong> asks 
you to share personal information.<br/>
+  <i *ngIf="!clientNameFound"><i class="fa fa-circle-o-notch fa-spin 
fa-fw"></i> Looking for client description.</i><br/>
+  <div *ngIf="clientNameFound"><span class="fa fa-openid"></span>  <strong>"{{ 
clientName }}"</strong>
+  asks you to share personal information.<br/>
   Choose an identity to let it access the following information:
+  </div>
   <ul>
     <li *ngFor="let attribute of getScopes()"><strong>{{attribute}}</strong>
   </ul>
@@ -10,8 +13,8 @@
 </div>
 
 <div *ngIf="!isConnected(); else emptyIdList" 
-               style="text-align: center; font-size: 1.75em;" class="alert 
alert-danger alert-dismissible fade show" role="alert">
-       <strong>GNUnet is not running.</strong>
+    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 970af22..b7941be 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -33,8 +33,8 @@ export class IdentityListComponent implements OnInit {
   identityInEditName: string;
   identityNameMapper: any;
   showTicketsIdentity: Identity;
-       showConfirmDelete: any;
-       connected: any;
+  showConfirmDelete: any;
+  connected: any;
 
   constructor(private route: ActivatedRoute, private router: Router,
               private oidcService: OpenIdService,
@@ -54,8 +54,8 @@ export class IdentityListComponent implements OnInit {
     this.newAttribute = new Attribute ('', '', '', 'STRING');
     this.requestedAttributes = {};
     this.missingAttributes = {};
-               this.clientName = "-";
-               this.connected = false;
+    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.
@@ -131,6 +131,11 @@ export class IdentityListComponent implements OnInit {
         });
   }
 
+  clientNameFound()
+  {
+    return this.clientName != this.oidcService.getClientId();
+  }
+
   intToRGB(i)
   {
     i = this.hashCode(i);

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