gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 122/459: remove cruft


From: gnunet
Subject: [reclaim-ui] 122/459: remove cruft
Date: Fri, 11 Jun 2021 23:23:34 +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 9428befd1a2f87e9bbc4bb4001a321201f972fc0
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Mon Jul 15 16:19:52 2019 +0200

    remove cruft
---
 src/app/identity-list/identity-list.component.ts | 50 ++----------------------
 1 file changed, 3 insertions(+), 47 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index a8e9777..3cbaf06 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -61,53 +61,11 @@ export class IdentityListComponent implements OnInit {
     this.ticketAttributeMapper = {};
     this.modalOpened = false;
     this.oidcService.parseRouteParams(this.route.snapshot.queryParams);
-    // 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++) {
-          uaParams[keyVals[i].split("=")[0]] = keyVals[i].split("=")[1];
-        }
-        console.log(uaParams);
-        this.oidcService.parseRouteParams(uaParams);
-      }
-      this.getClientName();
-      // 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); });
-      console.log("processed localstorage");
-    });*/
     this.getClientName();
-    // this.newIdentity = new Identity('', '', {});
     this.identityInEditName = '';
     this.identityNameMapper = {};
     this.updateIdentities();
     console.log('processed nginit');
-    // browser.storage.onChanged.addListener(this.handleStorageChange);
-  }
-
-  handleStorageChange(): 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++) {
-        uaParams[keyVals[i].split("=")[0]] = keyVals[i].split("=")[1];
-      }
-      console.log(uaParams);
-      this.oidcService.parseRouteParams(uaParams);
-    });*/
   }
 
   confirmDelete(identity) { this.showConfirmDelete = identity; }
@@ -121,6 +79,9 @@ export class IdentityListComponent implements OnInit {
   getClientName() {
     this.clientNameFound = undefined;
     this.clientName = this.oidcService.getClientId();
+    if (!this.oidcService.inOpenIdFlow()) {
+      return;
+    }
     this.gnsService.getClientName(this.oidcService.getClientId())
       .subscribe(record => {
         const records = record.data;
@@ -137,11 +98,6 @@ export class IdentityListComponent implements OnInit {
       }, () => { this.clientNameFound = false; });
   }
 
-  // clientNameFound()
-  // {
-  // return this.clientName !== this.oidcService.getClientId();
-  // }
-
   intToRGB(i) {
     i = this.hashCode(i);
     const c = (i & 0x00FFFFFF).toString(16).toUpperCase();

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