[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 189/459: experimental switch added
From: |
gnunet |
Subject: |
[reclaim-ui] 189/459: experimental switch added |
Date: |
Fri, 11 Jun 2021 23:24:41 +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 52dbb22f2295fe09c0b64fc7cc501aad34608836
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Fri Feb 14 10:00:31 2020 +0100
experimental switch added
---
src/app/edit-identity/edit-identity.component.html | 3 +--
src/app/edit-identity/edit-identity.component.ts | 18 +++++++++++++++++-
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/app/edit-identity/edit-identity.component.html
b/src/app/edit-identity/edit-identity.component.html
index 8fb500b..0e40c6c 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -141,7 +141,7 @@
<li>IDs and values may not be empty!</li>
</ul>
</div>
- <button class="btn btn-primary mb-4 fhg-link"
(click)="getFhGAttestation()">
+ <button *ngIf="isExperimental()" class="btn btn-primary mb-4 fhg-link"
(click)="getFhGAttestation()">
<span class="fa fa-user"></span> Link Fraunhofer Account
</button>
<hr/>
@@ -163,4 +163,3 @@
</div>
</div>
</div>
-
diff --git a/src/app/edit-identity/edit-identity.component.ts
b/src/app/edit-identity/edit-identity.component.ts
index 8a6f63a..fff2499 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -46,7 +46,10 @@ export class EditIdentityComponent implements OnInit {
this.identity = new Identity('','');
this.newAttribute = new Attribute('', '', '', '', 'STRING', '');
this.newAttested = new Attribute('', '', '', '', 'STRING', '');
- this.activatedRoute.params.subscribe(p => {
+ if (undefined !== this.activatedRoute.snapshot.queryParams["experiments"])
{
+ this.setExperimental("true" ===
this.activatedRoute.snapshot.queryParams["experiments"]);
+ }
+ this.activatedRoute.params.subscribe(p => {
if (p['id'] === undefined) {
return;
}
@@ -614,4 +617,17 @@ export class EditIdentityComponent implements OnInit {
window.location.href =
"http://localhost:4567/authorize?redirect_uri=http%3A%2F%2Flocalhost:4200%2Findex.html&client_id=reclaimid&response_type=code&scopes=openid";
}
+ setExperimental(set) {
+ if (set) {
+ localStorage.setItem('reclaimExperiments', 'enabled');
+ } else {
+ localStorage.setItem('reclaimExperiments', '');
+ }
+ }
+
+ isExperimental() {
+ var exp = localStorage.getItem('reclaimExperiments');
+ return ((undefined !== exp) && ("" !== exp));
+ }
+
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 181/459: actually fix reference name display, (continued)
- [reclaim-ui] 181/459: actually fix reference name display, gnunet, 2021/06/11
- [reclaim-ui] 200/459: webfinger, gnunet, 2021/06/11
- [reclaim-ui] 170/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 205/459: login via omejdn:api works, gnunet, 2021/06/11
- [reclaim-ui] 185/459: minor fixes, gnunet, 2021/06/11
- [reclaim-ui] 206/459: attestation name added, gnunet, 2021/06/11
- [reclaim-ui] 186/459: update to new API and structure, gnunet, 2021/06/11
- [reclaim-ui] 208/459: store idProvider/Attestation(not working), gnunet, 2021/06/11
- [reclaim-ui] 207/459: improved emailNotFoundAlert, gnunet, 2021/06/11
- [reclaim-ui] 193/459: update dependencies, gnunet, 2021/06/11
- [reclaim-ui] 189/459: experimental switch added,
gnunet <=
- [reclaim-ui] 191/459: update to angular9; minor bugfixes, gnunet, 2021/06/11
- [reclaim-ui] 187/459: add issuer display, gnunet, 2021/06/11
- [reclaim-ui] 216/459: idProvider stored in localStorage and loaded to authorization interface, gnunet, 2021/06/11
- [reclaim-ui] 204/459: merge yarn.lock, gnunet, 2021/06/11
- [reclaim-ui] 192/459: minor fixes, gnunet, 2021/06/11
- [reclaim-ui] 195/459: fix parsing claims parameter, gnunet, 2021/06/11
- [reclaim-ui] 218/459: login works properly, gnunet, 2021/06/11
- [reclaim-ui] 188/459: add expiration, gnunet, 2021/06/11
- [reclaim-ui] 198/459: back to where it should be, gnunet, 2021/06/11
- [reclaim-ui] 201/459: started integrating oauthservice for attestation, gnunet, 2021/06/11