[angular-16-irish-monitor]: Fix cancel invitation method of a user. Set rootClass only if it is changed.

This commit is contained in:
Konstantinos Triantafyllou 2024-01-12 09:15:04 +02:00
parent 037c32c545
commit ba1a3b9e62
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}
}

View File

@ -78,7 +78,7 @@ export class UserRegistryService {
public cancelInvitation(type: string, id: string, email: string, role: "member" | "manager" = "manager"): Observable<any> {
return this.http.delete<any>(properties.registryUrl + 'invite/' +
type + '/' + id + '/' + role + '/' + encodeURIComponent(email),
Role.GROUP + type + '/' + id + '/' + role + '/' + encodeURIComponent(email),
CustomOptions.registryOptions());
}
}