gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 155/459: fixes


From: gnunet
Subject: [reclaim-ui] 155/459: fixes
Date: Fri, 11 Jun 2021 23:24: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 ab8c57a0cc719668c583ba24f585d4aa05d729d9
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Tue Dec 10 17:36:14 2019 +0100

    fixes
---
 src/app/edit-identity/edit-identity.component.html | 10 +++++-----
 src/app/edit-identity/edit-identity.component.ts   |  6 +++---
 src/app/identity-list/identity-list.component.ts   |  1 +
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/app/edit-identity/edit-identity.component.html 
b/src/app/edit-identity/edit-identity.component.html
index d854707..0820c55 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -44,7 +44,7 @@
               <input placeholder="Value" 
[class.text-danger]="!attributeValueValid(newAttribute)" 
[(ngModel)]="newAttribute.value">
             </td>
             <td>
-              <button [disabled]="!canAddAttribute(newAttribute)" class="btn 
btn-primary"  (click)="addAttribute(newAttribute)">
+              <button [disabled]="!canAddAttribute(newAttribute)" class="btn 
btn-primary"  (click)="addAttribute()">
                 <span class="fa fa-plus"></span> 
               </button>
             </td>
@@ -63,7 +63,7 @@
     </div>
     <!-- Authorized entities -->
     <div style="margin-top: 1.5em;">
-      <table class="table pb-1" *ngIf="showTicketsIdentity">
+      <table class="table pb-1" *ngIf="showTickets">
         <thead style="border-top-style: hidden">
           <tr>
             <th scope="col">
@@ -114,10 +114,10 @@
       <button class="btn btn-primary" (click)="saveIdentityAttributes()" 
[disabled]="!canSaveIdentity()">
         <span class="fa fa-save"></span> Save and Back
       </button>
-        <button *ngIf="(0 < tickets?.length) && !inOpenIdFlow()" class="btn 
btn-primary" (click)="toggleShowTickets()" [style.float]="'right'">
+        <button *ngIf="(0 < tickets.length) && !inOpenIdFlow()" class="btn 
btn-primary" (click)="toggleShowTickets()" [style.float]="'right'">
         <span class="fa fa-openid"></span>
-        <span *ngIf="showTicketsIdentity"> Hide</span>
-        <span *ngIf="!showTicketsIdentity"> Show</span> 
+        <span *ngIf="showTickets"> Hide</span>
+        <span *ngIf="!showTickets"> Show</span> 
         authorizations
       </button>
     </div>
diff --git a/src/app/edit-identity/edit-identity.component.ts 
b/src/app/edit-identity/edit-identity.component.ts
index 8acae63..d438c0e 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -18,7 +18,7 @@ import { from, forkJoin, EMPTY } from 'rxjs';
 })
 export class EditIdentityComponent implements OnInit {
 
-  tickets: {};
+  tickets: Ticket[];
   identity: Identity;
   audienceNames: {};
   showTickets: Boolean;
@@ -38,7 +38,7 @@ export class EditIdentityComponent implements OnInit {
               private router: Router) { }
 
   ngOnInit() {
-    this.tickets = {};
+    this.tickets = [];
     this.attributes = [];
     this.showConfirmRevoke = null;
     this.identity = new Identity('','');
@@ -212,7 +212,7 @@ export class EditIdentityComponent implements OnInit {
     return !this.isInConflict(attribute);
   }
 
-  canSaveIdentity(identity) {
+  canSaveIdentity() {
     if (this.canAddAttribute(this.newAttribute)) {
       return true;
     }
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index b951fc2..dc6f98b 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -32,6 +32,7 @@ export class IdentityListComponent implements OnInit {
   modalOpened: any;
   clientNameFound: any;
   errorInfos: any;
+  searchTerm: any;
 
   constructor(private route: ActivatedRoute, private oidcService: 
OpenIdService,
     private identityService: IdentityService,

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