gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 32/459: merge master


From: gnunet
Subject: [reclaim-ui] 32/459: merge master
Date: Fri, 11 Jun 2021 23:22:04 +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 26074f5c453714600e0af623378685e25d29fe55
Merge: 8726332 6c5bc5d
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Sun Apr 14 17:11:24 2019 +0200

    merge master

 src/app/attribute.ts                             |   7 +-
 src/app/identity-list/identity-list.component.ts | 344 +++++++++++------------
 src/app/reclaim.service.ts                       |  54 ++--
 3 files changed, 209 insertions(+), 196 deletions(-)

diff --cc src/app/identity-list/identity-list.component.ts
index d3b3754,846d4fa..9ad69cd
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@@ -46,78 -50,23 +50,67 @@@ export class IdentityListComponent impl
      this.tickets = {};
      this.identities = [];
      this.showConfirmDelete = null;
-     this.newAttribute = new Attribute('', '', 'STRING');
+     this.newAttribute = new Attribute ('', '', '', 'STRING');
      this.requestedAttributes = {};
      this.missingAttributes = {};
 -    this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
 +    this.clientName = "-";
 +
-     // On opening the options page, fetch stored settings and update the UI 
with them.
++    // On opening the options page, fetch stored settings and update the UI 
with
++    // them.
 +    browser.storage.local.get().then(uaSettings => {
 +      var uaParams = {};
 +      if (true == <boolean>uaSettings["request"]) {
 +        var searchStr = <string>uaSettings["search"];
 +        var keyVals = searchStr.split("&");
-         for (var i = 0; i < keyVals.length; i++)
-         {
++        for (var i = 0; i < keyVals.length; i++) {
 +          uaParams[keyVals[i].split("=")[0]] = keyVals[i].split("=")[1];
 +        }
-         console.log (uaParams);
++        console.log(uaParams);
 +        this.oidcService.parseRouteParams(uaParams);
 +      }
 +      this.getClientName();
-       //this.newIdentity = new Identity('', '', {});
++      // this.newIdentity = new Identity('', '', {});
 +      this.identityInEditName = "";
 +      this.identityNameMapper = {};
 +      this.updateIdentities();
-       browser.storage.local.remove("request").then(() => {
-           console.log("Local storage request removed.");
-         },
-         (e) => {
-           console.log(e);
-         }
-       );
-       browser.storage.local.remove("search").then(() => {
-           console.log("Local storage request removed.");
-         },
-         (e) => {
-           console.log(e);
-         }
-       );
++      browser.storage.local.remove("request").then(
++          () => { console.log("Local storage request removed."); },
++          (e) => { console.log(e); });
++      browser.storage.local.remove("search").then(
++          () => { console.log("Local storage request removed."); },
++          (e) => { console.log(e); });
 +      console.log("processed localstorage");
 +    });
      this.getClientName();
-     //this.newIdentity = new Identity('', '', {});
+     // this.newIdentity = new Identity('', '', {});
      this.identityInEditName = "";
      this.identityNameMapper = {};
      this.updateIdentities();
 +    console.log("processed nginit");
-     //browser.storage.onChanged.addListener(this.handleStorageChange);
++    // browser.storage.onChanged.addListener(this.handleStorageChange);
 +  }
 +
-   handleStorageChange(uaSettings, areaName) : void {
-     //Greedy
++  handleStorageChange(uaSettings, areaName): void
++  {
++    // Greedy
 +    browser.storage.local.get().then(uaSettings => {
 +      var uaParams = {};
 +      var searchStr = <string>uaSettings["search"];
 +      var keyVals = searchStr.split("&");
-       for (var i = 0; i < keyVals.length; i++)
-       {
++      for (var i = 0; i < keyVals.length; i++) {
 +        uaParams[keyVals[i].split("=")[0]] = keyVals[i].split("=")[1];
 +      }
-       console.log (uaParams);
++      console.log(uaParams);
 +      this.oidcService.parseRouteParams(uaParams);
 +    });
    }
  
-   confirmDelete(identity) {
-     this.showConfirmDelete = identity;
-   }
+   confirmDelete(identity) { this.showConfirmDelete = identity; }
  
-   hideConfirmDelete() {
-     this.showConfirmDelete = null;
-   }
+   hideConfirmDelete() { this.showConfirmDelete = null; }
  
-   getClientName() {
+   getClientName()
+   {
      if (!this.inOpenIdFlow()) {
        this.clientName = "-";
        return;

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