From 3d08ffeb529dd905ada1ec8eefd969877601c698 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 12 Jan 2024 09:15:04 +0200 Subject: [PATCH] [angular-16-irish-monitor]: Fix cancel invitation method of a user. Set rootClass only if it is changed. (cherry picked from commit ba1a3b9e62447d95318c73a54c1b37b4e1ac73fb) --- dashboard/sharedComponents/sidebar/layout.service.ts | 4 +++- services/user-registry.service.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dashboard/sharedComponents/sidebar/layout.service.ts b/dashboard/sharedComponents/sidebar/layout.service.ts index 29b83bd0..17657431 100644 --- a/dashboard/sharedComponents/sidebar/layout.service.ts +++ b/dashboard/sharedComponents/sidebar/layout.service.ts @@ -339,6 +339,8 @@ export class LayoutService { } setRootClass(value: string = null): void { - this.rootClassSubject.next(value); + if(this.rootClassSubject.value != value) { + this.rootClassSubject.next(value); + } } } diff --git a/services/user-registry.service.ts b/services/user-registry.service.ts index 561e7da8..e81cf626 100644 --- a/services/user-registry.service.ts +++ b/services/user-registry.service.ts @@ -78,7 +78,7 @@ export class UserRegistryService { public cancelInvitation(type: string, id: string, email: string, role: "member" | "manager" = "manager"): Observable { return this.http.delete(properties.registryUrl + 'invite/' + - type + '/' + id + '/' + role + '/' + encodeURIComponent(email), + Role.GROUP + type + '/' + id + '/' + role + '/' + encodeURIComponent(email), CustomOptions.registryOptions()); } }