From f5a3baf5e85e187280954d40bf2e91cbfe3aff35 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Wed, 27 Jan 2021 12:54:48 +0100 Subject: [PATCH] Remove unused dbp-auth-keycloak-data-update event --- packages/auth/README.md | 1 - packages/auth/src/auth-keycloak.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/packages/auth/README.md b/packages/auth/README.md index 8d4551e4..7b78c1e5 100644 --- a/packages/auth/README.md +++ b/packages/auth/README.md @@ -39,7 +39,6 @@ npm i @dbp-toolkit/auth ### Events to listen to - `dbp-auth-person-init`: Keycloak person init event - the person entity was loaded from the server -- `dbp-auth-keycloak-data-update`: Keycloak data was updated - happens for example every time after a token refresh ## Login Button diff --git a/packages/auth/src/auth-keycloak.js b/packages/auth/src/auth-keycloak.js index d0ae9864..160ea895 100644 --- a/packages/auth/src/auth-keycloak.js +++ b/packages/auth/src/auth-keycloak.js @@ -45,7 +45,6 @@ export class AuthKeycloak extends AdapterLitElement { // Create the events this.personInitEvent = new CustomEvent("dbp-auth-person-init", { "detail": "KeyCloak person init event", bubbles: true, composed: true }); - this.keycloakDataUpdateEvent = new CustomEvent("dbp-auth-keycloak-data-update", { "detail": "KeyCloak data was updated", bubbles: true, composed: true }); this._onKCChanged = this._onKCChanged.bind(this); } @@ -133,8 +132,6 @@ export class AuthKeycloak extends AdapterLitElement { }); }, {}, that.lang); } - - this.dispatchEvent(this.keycloakDataUpdateEvent); } sendSetPropertyEvents() { -- GitLab