From c928d18eed03d2fb15bfa12fb55228f69d80dbce Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 5 Oct 2020 13:17:53 +0000 Subject: [PATCH] [Admin | Trunk]: Change registry service methods name git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@59506 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/pages/managers/managers.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);