gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 90/459: clarify state


From: gnunet
Subject: [reclaim-ui] 90/459: clarify state
Date: Fri, 11 Jun 2021 23:23:02 +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 aba585a041b06722ef2b11c95d7c886655f2ff43
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Tue Jun 25 20:10:08 2019 +0200

    clarify state
---
 src/app/identity-list/identity-list.component.html | 15 ++++++++-------
 src/app/identity-list/identity-list.component.ts   |  2 +-
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.html 
b/src/app/identity-list/identity-list.component.html
index ab59092..f68fd52 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -1,11 +1,11 @@
 <div *ngIf="inOpenIdFlow()" class="alert alert-primary alert-dismissible fade 
show" role="alert">
-  <span><i class="fa fa-2x fa-openid"></i> <b class="fa-2x"> Authorization 
Request</b></span><br/>
-  <i *ngIf="!clientNameFound()"><i class="fa fa-circle-o-notch fa-spin 
fa-fw"></i> Verifying request for:</i><br/>
+  <span *ngIf="clientNameFound()"><i class="fa fa-2x fa-openid"></i> <b 
class="fa-2x"> Authorization Request</b></span><br/>
+  <span *ngIf="!clientNameFound()"><i class="fa fa-2x fa-circle-o-notch 
fa-spin fa-fw"></i> <b class="fa-2x">Verifying request..</b></span><br/>
   <div *ngIf="clientNameFound()"><strong>"{{ clientName }}"</strong>
     asks you to share personal information.<br/>
     Choose an identity to let it access the following information:
   </div>
-  <ul>
+  <ul *ngIf="clientNameFound()">
     <li *ngFor="let attribute of getScopes()"><strong>{{attribute}}</strong>
   </ul>
   <button class="btn btn-danger" (click)="cancelRequest()">
@@ -156,7 +156,7 @@
       <div class="card-avatar-character text-dark">
         <!--<div class="icon m-1 text-uppercase" 
[style.background-color]="intToRGB(identity.pubkey)">{{ 
identity.name[0]}}</div>-->
         <i class="fa fa-user-circle"></i>
-        <span class="m-1" styl="display: inline-block"><i> 
{{identity.name}}</i></span>
+        <span class="m-1" style="display: inline-block"><i> 
{{identity.name}}</i></span>
         <button class="btn btn-primary" *ngIf="showConfirmDelete != identity" 
(click)="confirmDelete(identity)">
           <span class="fa fa-trash"></span>
         </button>
@@ -216,9 +216,10 @@
       <div>
 
         <div>
-          <span *ngIf="!clientNameFound()"><i class="fa fa-circle-o-notch 
fa-spin fa-fw"></i> Verification in progress...</span>
-          <button *ngIf="canAuthorize(identity)" [disabled]="!inOpenIdFlow() 
|| isAttributeMissing(identity) || !clientNameFound" 
(click)="loginIdentity(identity)" class="btn btn-primary mr-1 openid-login">
-            <span *ngIf="clientNameFound()" class="fa fa-openid"></span> Share 
from this identity</button>
+          <span *ngIf="inOpenIdFlow() && !clientNameFound()"><i class="fa 
fa-circle-o-notch fa-spin fa-fw"></i> Verification in progress...</span>
+          <button *ngIf="canAuthorize(identity)" [disabled]="!inOpenIdFlow() 
|| isAttributeMissing(identity) || !clientNameFound()" 
(click)="loginIdentity(identity)" class="btn btn-primary mr-1 openid-login">
+            <span *ngIf="clientNameFound()" class="fa 
fa-exclamation-circle"></span> Share from this identity</button>
+            <span *ngIf="!clientNameFound()" class="fa fa-"></span> Sharing 
disabled</button>
         </div>
       </div>
       <div>
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index 11ef8e3..d9d1413 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -472,7 +472,7 @@ export class IdentityListComponent implements OnInit {
   getMissingPretty(identity) { return this.getMissing(identity).join(", "); }
   canAuthorize(identity)
   {
-    return this.inOpenIdFlow() && !this.isInEdit(identity) && 
this.clientNameFound();
+    return this.inOpenIdFlow() && !this.isInEdit(identity);
   }
   isRequested(identity, attribute)
   {

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