[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
master
k.triantafyllou 4 years ago
parent d493170cfd
commit c928d18eed

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

Loading…
Cancel
Save