Revision 59506
Added by Konstantinos Triantafyllou over 3 years ago
modules/uoa-admin-portal/trunk/src/app/pages/managers/managers.component.ts | ||
---|---|---|
90 | 90 |
|
91 | 91 |
deleteManager() { |
92 | 92 |
this.loadManagers = true; |
93 |
this.userRegistryService.removeManagerRole('community', this.communityId, this.selectedUser).subscribe(() => {
|
|
93 |
this.userRegistryService.removeManager('community', this.communityId, this.selectedUser).subscribe(() => { |
|
94 | 94 |
this.managers = this.managers.filter(manager => manager.email != this.selectedUser); |
95 | 95 |
this.loadManagers = false; |
96 | 96 |
this.error = null; |
... | ... | |
102 | 102 |
|
103 | 103 |
deletePendingManager() { |
104 | 104 |
this.loadPending = true; |
105 |
this.userRegistryService.cancelInvitation('community', this.communityId, this.selectedUser).subscribe(() => { |
|
105 |
this.userRegistryService.cancelManagerInvitation('community', this.communityId, this.selectedUser).subscribe(() => {
|
|
106 | 106 |
this.pending = this.pending.filter(manager => manager != this.selectedUser); |
107 | 107 |
this.error = null; |
108 | 108 |
this.loadPending = false; |
... | ... | |
118 | 118 |
name: this.communityName, |
119 | 119 |
link: this.getURL() |
120 | 120 |
} |
121 |
this.userRegistryService.invite('community', this.communityId, this.invited.value, details).subscribe(invitation => { |
|
121 |
this.userRegistryService.inviteManager('community', this.communityId, this.invited.value, details).subscribe(invitation => {
|
|
122 | 122 |
this.error = null; |
123 | 123 |
if(!this.pending.includes(this.invited.value)) { |
124 | 124 |
this.pending.push(this.invited.value); |
Also available in: Unified diff
[Admin | Trunk]: Change registry service methods name