gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 275/459: more info boxes


From: gnunet
Subject: [reclaim-ui] 275/459: more info boxes
Date: Fri, 11 Jun 2021 23:26:07 +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 1d289acd560be9777dfbd2070e83265ef0d46beb
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Fri Aug 7 08:58:40 2020 +0200

    more info boxes
---
 .../authorization-request.component.html                      |  3 +--
 src/app/edit-identity/edit-identity.component.html            |  2 +-
 src/app/identity-list/identity-list.component.html            |  9 ++++++++-
 src/app/identity-list/identity-list.component.ts              | 11 +++++++++++
 4 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/app/authorization-request/authorization-request.component.html 
b/src/app/authorization-request/authorization-request.component.html
index 23c0913..3c21c71 100644
--- a/src/app/authorization-request/authorization-request.component.html
+++ b/src/app/authorization-request/authorization-request.component.html
@@ -1,6 +1,6 @@
 <div style="text-align: center;">
   <i class="fa fa-2x fa-openid"></i> 
-  <b class="fa-2x"> Authorization Request </b>
+  <b class="fa-2x"> Personal information request </b>
   <br/>
   <span *ngIf="isClientVerified() === undefined">
     <i class="fa fa-2x fa-circle-o-notch fa-spin fa-fw"></i> 
@@ -22,7 +22,6 @@
         <li *ngFor="let attribute of 
getRequestedNonStandardClaims()"><strong>{{attribute}}</strong></li>
       </ul>
     </div>
-
   </div>
   <div style="margin: 1em;">
     <button class="btn btn-danger m-1 mt-4" *ngIf="isClientVerified()" 
(click)="cancelRequest()" style="margin-bottom: -4%;">
diff --git a/src/app/edit-identity/edit-identity.component.html 
b/src/app/edit-identity/edit-identity.component.html
index 36985d0..5a82669 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -15,7 +15,7 @@
       <h3 class="card-subtitle mb-2">Basic user information <span 
(click)="showGeneralInfo = !showGeneralInfo" class="fa 
fa-question-circle"></span></h3>
       <div class="alert alert-secondary fade show" *ngIf="showGeneralInfo">
         The attributes below correspond to the standard scopes of the OpenID 
Connect
-        specification: profile, email, phone and address.
+        specification: ``profile'', ``email'', ``phone'' and ``address''.
       </div>
 
       <table class="table pb-1">
diff --git a/src/app/identity-list/identity-list.component.html 
b/src/app/identity-list/identity-list.component.html
index 7f8caf6..42ef0ac 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -112,7 +112,14 @@
         </table>
       </div>
       <div style="margin-bottom: 1em" *ngIf="(0 < 
attributes[identity.pubkey]?.length) && inOpenIdFlow()" class="text-primary">
-        Only attributes marked with <span class="fa fa-openid" ></span> will 
be shared.
+        Attributes marked with <span class="fa fa-openid" ></span> will be 
shared. <span (click)="toggleSharingInfo(identity)" class="fa 
fa-question-circle"></span><br/>
+      <div class="alert alert-secondary fade show" 
*ngIf="isSharingInfoOpened(identity)">
+        If you do not want to share information from this identity, you may
+        declide the request or choose a different identity.<br/>
+        If you do not want to share a specific piece of information, you have
+        to remove the respective attribute.
+      </div>
+
       </div>
       <div>
 
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index 0b45f17..c0547be 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -36,6 +36,7 @@ export class IdentityListComponent implements OnInit {
   modalOpened: any;
   errorInfos: any;
   searchTerm: any;
+  showSharingInfo: any = '';
   sortAttributeByStandardClaim: any;
 
   constructor(private route: ActivatedRoute, private oidcService: 
OpenIdService,
@@ -417,5 +418,15 @@ export class IdentityListComponent implements OnInit {
     }
     return true;
   }
+  toggleSharingInfo(id: Identity) {
+    if (this.showSharingInfo === id) {
+      this.showSharingInfo = '';
+      return;
+    }
+    this.showSharingInfo = id;
+  }
 
+  isSharingInfoOpened(identity): boolean {
+    return this.showSharingInfo == identity;
+  }
 }

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