gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 175/459: fix


From: gnunet
Subject: [reclaim-ui] 175/459: fix
Date: Fri, 11 Jun 2021 23:24:27 +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 d4a10de3ad87f2d192810fa315b4921a53f33b59
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Mon Jan 20 15:22:22 2020 +0100

    fix
---
 .../authorization-request.component.ts             |  2 +-
 src/app/edit-identity/edit-identity.component.html | 53 ++++++++--------------
 2 files changed, 20 insertions(+), 35 deletions(-)

diff --git a/src/app/authorization-request/authorization-request.component.ts 
b/src/app/authorization-request/authorization-request.component.ts
index 72325e9..9e62709 100644
--- a/src/app/authorization-request/authorization-request.component.ts
+++ b/src/app/authorization-request/authorization-request.component.ts
@@ -20,7 +20,7 @@ export class AuthorizationRequestComponent implements OnInit {
     return this.oidcService.getScope();
   }
 
-  getRedSCope() {
+  getRefScope() {
     return this.oidcService.getRefScope();
   }
 
diff --git a/src/app/edit-identity/edit-identity.component.html 
b/src/app/edit-identity/edit-identity.component.html
index 0d7be85..352cd20 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -9,57 +9,44 @@
   <div class="card-body">
     <div>
       <h6 class="card-subtitle mb-2">Attributes:</h6>
-      <!-- Missing references -->
-      <table class="table pb-1" *ngIf="isReferenceMissing()">
+      <!-- Missing attributes -->
+      <table class="table pb-1" *ngIf="isAttributeMissing() || 
isReferenceMissing()">
         <thead>
           <tr>
               <th>Attribute Name</th>
               <th>Attribute Value</th>
-              <th>Attestation ID</th>
           </tr>
         </thead>
         <tbody>
-          <tr [class.openid]="inOpenIdFlow()" 
[class.alert-danger]="newReference.name === missing.name" class="text-primary" 
*ngFor="let missing of missingReferences">
+          <tr [class.openid]="inOpenIdFlow()" 
[class.alert-danger]="newAttribute.name === missing.name" class="text-primary" 
*ngFor="let missing of missingAttributes">
             <td><div style="min-width: 15em">{{missing.name}}</div></td>
             <td>
-<select *ngIf="missing.ref_id !== ''" 
(change)="missing.ref_value=$event.target.value">
-                <option value="">Select a Claim</option>
-                <option *ngFor="let claim of 
objectKeys(attestation_val[missing.ref_id])" value={{claim}}>
-                  {{claim}}
-                </option>
-                <option 
value="">{{attestationValues[missing.ref_id]['iss']}}</option>
-              </select>
-            </td>
-            <td>
-              <select (change)="missing.ref_id=$event.target.value; ">
-              <option value="">Select an Attestation</option>
-              <option *ngFor="let attest of attestations" value={{attest.id}}>
-                {{attest.name}}
-              </option>
-            </select>
+              <input placeholder="Value" [(ngModel)]="missing.value">
             </td>
             <td>
             </td>
           </tr>
-        </tbody>
-      </table>
-      <!-- Missing attributes -->
-      <table class="table pb-1" *ngIf="isAttributeMissing()">
-        <thead>
-          <tr>
-              <th>Attribute Name</th>
-              <th>Attribute Value</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr [class.openid]="inOpenIdFlow()" 
[class.alert-danger]="newAttribute.name === missing.name" class="text-primary" 
*ngFor="let missing of missingAttributes">
+          <tr [class.openid]="inOpenIdFlow()" 
[class.alert-danger]="newReference.name === missing.name" class="text-primary" 
*ngFor="let missing of missingReferences">
             <td><div style="min-width: 15em">{{missing.name}}</div></td>
             <td>
-              <input placeholder="Value" [(ngModel)]="missing.value">
+              <select (change)="missing.ref_id=$event.target.value; ">
+                <option value="">Attestation</option>
+                <option *ngFor="let attest of attestations" 
value={{attest.id}}>
+                  {{attest.name}}
+                </option>
+              </select>
+
+              <select *ngIf="missing.ref_id !== ''" 
(change)="missing.ref_value=$event.target.value">
+                <option value="">Source</option>
+                <option *ngFor="let claim of 
attestationValuesForReference(missing.ref_id)" value={{claim}}>
+                  {{claim}}
+                </option>
+              </select>
             </td>
             <td>
             </td>
           </tr>
+
         </tbody>
       </table>
       <!-- Requested attributes -->
@@ -116,9 +103,7 @@
                 <option *ngFor="let claim of 
attestationValuesForReference(newReference)" value={{claim}}>
                   {{claim}}
                 </option>
-                <option 
value="">{{attestationValues[newReference.ref_id]['iss']}}</option>
               </select>
-
             </td>
 
             <td>

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