[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 260/459: fix flag settings
From: |
gnunet |
Subject: |
[reclaim-ui] 260/459: fix flag settings |
Date: |
Fri, 11 Jun 2021 23:25:52 +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 79437c777e3d749b92c75622fa002d6023c5ab92
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Tue Aug 4 22:35:22 2020 +0200
fix flag settings
---
src/app/edit-identity/edit-identity.component.ts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/app/edit-identity/edit-identity.component.ts
b/src/app/edit-identity/edit-identity.component.ts
index 329c251..50a6f45 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -58,8 +58,8 @@ export class EditIdentityComponent implements OnInit {
this.newIdProvider = new IdProvider ('', '', '');
this.loadAuthorizationsFromLocalStorage();
this.identity = new Identity('','');
- this.newAttribute = new Attribute('', '', '', '', 'STRING', '');
- this.newAttested = new Attribute('', '', '', '', 'STRING', '');
+ this.newAttribute = new Attribute('', '', '', '', 'STRING', '0');
+ this.newAttested = new Attribute('', '', '', '', 'STRING', '1');
this.newAttestation = new Attestation('', '', '', 'JWT', '', null, []);
this.activatedRoute.params.subscribe(p => {
if (p['id'] === undefined) {
@@ -136,6 +136,7 @@ export class EditIdentityComponent implements OnInit {
this.missingAttributes = [];
for (i = 0; i < scopes.length; i++) {
const attribute = new Attribute('', '', '', '', 'STRING', '');
+ attribute.flag = '0';
attribute.name = scopes[i];
this.missingAttributes.push(attribute);
}
@@ -229,6 +230,7 @@ export class EditIdentityComponent implements OnInit {
this.newAttribute.name = '';
this.newAttribute.value = '';
this.newAttribute.type = 'STRING';
+ this.newAttribute.flag = '0';
this.router.navigate(['/']);
}))
.subscribe(res => {
@@ -290,6 +292,7 @@ export class EditIdentityComponent implements OnInit {
this.newAttribute.name = '';
this.newAttribute.value = '';
this.newAttribute.type = 'STRING';
+ this.newAttribute.flag = '0';
this.updateAttributes();
}))
.subscribe(res => {
@@ -347,6 +350,7 @@ export class EditIdentityComponent implements OnInit {
this.newAttested.attestation = '';
this.newAttested.id = '';
this.newAttested.value = '';
+ this.newAttested.flag = '1';
}))
.subscribe(res => {
//FIXME success dialog/banner
@@ -385,6 +389,7 @@ export class EditIdentityComponent implements OnInit {
this.optionalAttested = [];
for (i = 0; i < refscopes.length; i++) {
const attribute = new Attribute('', '', '', '', 'STRING', '');
+ attribute.flag = '1';
if (refscopes[i][1] === true)
{
attribute.name = refscopes[i][0];
@@ -447,6 +452,7 @@ export class EditIdentityComponent implements OnInit {
this.newAttested.value= '';
this.newAttested.id = '';
this.newAttested.attestation = '';
+ this.newAttested.flag = '1';
this.updateAttributes();
}))
.subscribe(res => {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 248/459: minor info change, (continued)
- [reclaim-ui] 248/459: minor info change, gnunet, 2021/06/11
- [reclaim-ui] 275/459: more info boxes, gnunet, 2021/06/11
- [reclaim-ui] 250/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 273/459: better requested claim handling, gnunet, 2021/06/11
- [reclaim-ui] 268/459: style, gnunet, 2021/06/11
- [reclaim-ui] 233/459: make discovery experimental, gnunet, 2021/06/11
- [reclaim-ui] 246/459: scopes in configuration, gnunet, 2021/06/11
- [reclaim-ui] 254/459: fix array splicing, gnunet, 2021/06/11
- [reclaim-ui] 262/459: some cleanup, gnunet, 2021/06/11
- [reclaim-ui] 252/459: minor fix, gnunet, 2021/06/11
- [reclaim-ui] 260/459: fix flag settings,
gnunet <=
- [reclaim-ui] 263/459: add spinner when saving, gnunet, 2021/06/11
- [reclaim-ui] 291/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 282/459: style change, gnunet, 2021/06/11
- [reclaim-ui] 265/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 287/459: add danger, gnunet, 2021/06/11
- [reclaim-ui] 241/459: formatting, gnunet, 2021/06/11
- [reclaim-ui] 264/459: fix phone number claim name; pass claims parameter, gnunet, 2021/06/11
- [reclaim-ui] 258/459: -minor, gnunet, 2021/06/11
- [reclaim-ui] 247/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 249/459: fix conflict, gnunet, 2021/06/11