[angular-16-irish-monitor]: Fix cancel invitation method of a user. Set rootClass only if it is changed.
This commit is contained in:
parent
037c32c545
commit
ba1a3b9e62
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue