[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
This commit is contained in:
k.triantafyllou 2020-10-05 13:17:53 +00:00
parent d493170cfd
commit c928d18eed
1 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ export class ManagersComponent implements OnInit, OnDestroy {
deleteManager() { deleteManager() {
this.loadManagers = true; 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.managers = this.managers.filter(manager => manager.email != this.selectedUser);
this.loadManagers = false; this.loadManagers = false;
this.error = null; this.error = null;
@ -102,7 +102,7 @@ export class ManagersComponent implements OnInit, OnDestroy {
deletePendingManager() { deletePendingManager() {
this.loadPending = true; 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.pending = this.pending.filter(manager => manager != this.selectedUser);
this.error = null; this.error = null;
this.loadPending = false; this.loadPending = false;
@ -118,7 +118,7 @@ export class ManagersComponent implements OnInit, OnDestroy {
name: this.communityName, name: this.communityName,
link: this.getURL() 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; this.error = null;
if(!this.pending.includes(this.invited.value)) { if(!this.pending.includes(this.invited.value)) {
this.pending.push(this.invited.value); this.pending.push(this.invited.value);