diff --git a/src/app/pages/managers/managers.component.ts b/src/app/pages/managers/managers.component.ts index ad4f10e..d522f47 100644 --- a/src/app/pages/managers/managers.component.ts +++ b/src/app/pages/managers/managers.component.ts @@ -90,7 +90,7 @@ export class ManagersComponent implements OnInit, OnDestroy { deleteManager() { this.loadManagers = true; - this.userRegistryService.removeManagerRole('community', this.communityId, this.selectedUser).subscribe(() => { + this.userRegistryService.removeManager('community', this.communityId, this.selectedUser).subscribe(() => { this.managers = this.managers.filter(manager => manager.email != this.selectedUser); this.loadManagers = false; this.error = null; @@ -102,7 +102,7 @@ export class ManagersComponent implements OnInit, OnDestroy { deletePendingManager() { this.loadPending = true; - this.userRegistryService.cancelInvitation('community', this.communityId, this.selectedUser).subscribe(() => { + this.userRegistryService.cancelManagerInvitation('community', this.communityId, this.selectedUser).subscribe(() => { this.pending = this.pending.filter(manager => manager != this.selectedUser); this.error = null; this.loadPending = false; @@ -118,7 +118,7 @@ export class ManagersComponent implements OnInit, OnDestroy { name: this.communityName, link: this.getURL() } - this.userRegistryService.invite('community', this.communityId, this.invited.value, details).subscribe(invitation => { + this.userRegistryService.inviteManager('community', this.communityId, this.invited.value, details).subscribe(invitation => { this.error = null; if(!this.pending.includes(this.invited.value)) { this.pending.push(this.invited.value);