gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 298/459: fix


From: gnunet
Subject: [reclaim-ui] 298/459: fix
Date: Fri, 11 Jun 2021 23:26: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 cc516a00d449e745588fcc5b8c8b22c91272ffaf
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Thu Aug 13 16:33:19 2020 +0200

    fix
---
 src/app/identity-list/identity-list.component.html | 2 +-
 src/app/identity-list/identity-list.component.ts   | 1 +
 src/app/open-id.service.ts                         | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.html 
b/src/app/identity-list/identity-list.component.html
index e9b7e45..5054975 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -88,7 +88,7 @@
         <li *ngIf="isEmailRequested() && 
isEmailMissing(identity)">getEmailDescription()</li>
         <li *ngIf="isPhoneRequested() && 
isPhoneMissing(identity)">getPhoneDescription()</li>
         <li *ngIf="isAddressRequested() && 
isAddressMissing(identity)">getAddressDescription()</li>
-        <li *ngFor="let attr of getMissingClaims(identity)">{{attr}}<i 
*ngIf="isOptional(attribute)"> (optional)</i></li>
+        <li *ngFor="let attr of getMissingClaims(identity)">{{attr}}<i 
*ngIf="isOptional(attr)"> (optional)</i></li>
       </ul>
       <button class="btn btn-primary" [routerLink]="['/edit-identity', 
identity.name]">
         <span class="fa fa-plus"></span> Edit identity
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index edc034f..bbd8100 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -476,6 +476,7 @@ export class IdentityListComponent implements OnInit {
   }
 
   isOptional(attr: Attribute): boolean {
+    if (undefined === attr) { return true };
     var claims = this.oidcService.getRequestedClaims();
     for (let claim of claims) {
       if ((claim[0] === attr.name) &&
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index f8590e5..f93df08 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -202,7 +202,7 @@ export class OpenIdService {
         }
       }
     }
-    return false;
+    return true;
   }
 
   isProfileMissing(attributes: Attribute[]): boolean {

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