[Trunk | Admin]: community-edit-form.component.ts: create request path in service (email.service.ts) | Use [NEW] method "notifyForNewManagers()" when more appropriate than "sendEmail()".
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@58426 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
fd780ad708
commit
79654f5e8f
|
@ -228,7 +228,7 @@ export class CommunityEditFormComponent implements OnInit{
|
|||
}
|
||||
|
||||
private sendMailToNewManagers(managers: any) {
|
||||
this._emailService.sendEmail(this.properties.adminToolsAPIURL + '/sendMail/',
|
||||
this._emailService.sendEmail(this.properties,
|
||||
Composer.composeEmailForNewManager(this.communityId,
|
||||
this.community.title, managers)).subscribe(
|
||||
res => {
|
||||
|
@ -239,8 +239,8 @@ export class CommunityEditFormComponent implements OnInit{
|
|||
}
|
||||
|
||||
private informOldManagersForTheNewOnes() {
|
||||
this._emailService.sendEmail(
|
||||
this.properties.adminToolsAPIURL + '/notifyForNewManagers/' + this.communityId,
|
||||
this._emailService.notifyForNewManagers(
|
||||
this.properties, this.communityId,
|
||||
Composer.composeEmailToInformOldManagersForTheNewOnes(this.community.title, this.communityId,
|
||||
this.firstVersionOfManagers,
|
||||
this.community.managers)).subscribe(
|
||||
|
|
Loading…
Reference in New Issue