[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 394/459: fix default selection
From: |
gnunet |
Subject: |
[reclaim-ui] 394/459: fix default selection |
Date: |
Fri, 11 Jun 2021 23:28:06 +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 e62d58b32944a6a6cd531e7bd2ef2b8677af8dd8
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Dec 30 16:15:11 2020 +0900
fix default selection
---
src/app/edit-identity/edit-identity.component.html | 3 ++-
src/app/edit-identity/edit-identity.component.ts | 8 +++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/app/edit-identity/edit-identity.component.html
b/src/app/edit-identity/edit-identity.component.html
index 56ade45..c3b7446 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -120,9 +120,10 @@
[class.alert-danger]="isInConflict(newRequestedAttribute)">
<div class="col-sm">
<select class="custom-select"
+ [ngModel]="newRequestedAttribute.name"
(change)="setNewRequestedAttribute($event.target.value)">
<option value="" >{{
getMessage("edit_identity_html@selectAttribute") }}</option>
- <option *ngFor="let claim of getMissingClaims()" value={{claim}}>
+ <option *ngFor="let claim of getMissingClaims()"
value={{claim.name}}>
{{getDescription(claim)}}
</option>
</select>
diff --git a/src/app/edit-identity/edit-identity.component.ts
b/src/app/edit-identity/edit-identity.component.ts
index 0a5bc84..68b6309 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -792,10 +792,12 @@ export class EditIdentityComponent implements OnInit {
return claims;
}
- setNewRequestedAttribute(attr: Attribute) {
- this.newRequestedAttribute.name = attr.name;
+ setNewRequestedAttribute(attrName: string) {
+ this.resetAttribute(this.newRequestedAttribute);
+ this.newRequestedAttribute.name = attrName;
this.newRequestedAttribute.flag = '0';
- if (this.isClaimCredentialRequested(attr)) {
+ this.newRequestedAttribute.value = '';
+ if (this.isClaimCredentialRequested(this.newRequestedAttribute.name)) {
this.newRequestedAttribute.flag = '1';
if (this.credentials.length > 0) {
this.newRequestedAttribute.credential = this.credentials[0].id;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 361/459: authorization request dialog in identity list, (continued)
- [reclaim-ui] 361/459: authorization request dialog in identity list, gnunet, 2021/06/11
- [reclaim-ui] 370/459: build fix, gnunet, 2021/06/11
- [reclaim-ui] 364/459: fine tuning authorization, gnunet, 2021/06/11
- [reclaim-ui] 401/459: improve import logic and UI, gnunet, 2021/06/11
- [reclaim-ui] 320/459: works on chrome, gnunet, 2021/06/11
- [reclaim-ui] 342/459: Translated using Weblate (German), gnunet, 2021/06/11
- [reclaim-ui] 349/459: fix translations, gnunet, 2021/06/11
- [reclaim-ui] 387/459: update, gnunet, 2021/06/11
- [reclaim-ui] 358/459: clean up, gnunet, 2021/06/11
- [reclaim-ui] 386/459: fix import for browser plugin, other import may be broken, gnunet, 2021/06/11
- [reclaim-ui] 394/459: fix default selection,
gnunet <=
- [reclaim-ui] 369/459: add code for straight attribute import, gnunet, 2021/06/11
- [reclaim-ui] 407/459: use share icon, gnunet, 2021/06/11
- [reclaim-ui] 397/459: fix address handling, gnunet, 2021/06/11
- [reclaim-ui] 406/459: allow authorization from edit component, gnunet, 2021/06/11
- [reclaim-ui] 376/459: updatte attribute info, gnunet, 2021/06/11
- [reclaim-ui] 371/459: attribute import done, gnunet, 2021/06/11
- [reclaim-ui] 404/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 368/459: settings page, experiments tweaks, gnunet, 2021/06/11
- [reclaim-ui] 395/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 382/459: style adjustments, gnunet, 2021/06/11