[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) {
|
private sendMailToNewManagers(managers: any) {
|
||||||
this._emailService.sendEmail(this.properties.adminToolsAPIURL + '/sendMail/',
|
this._emailService.sendEmail(this.properties,
|
||||||
Composer.composeEmailForNewManager(this.communityId,
|
Composer.composeEmailForNewManager(this.communityId,
|
||||||
this.community.title, managers)).subscribe(
|
this.community.title, managers)).subscribe(
|
||||||
res => {
|
res => {
|
||||||
|
@ -239,8 +239,8 @@ export class CommunityEditFormComponent implements OnInit{
|
||||||
}
|
}
|
||||||
|
|
||||||
private informOldManagersForTheNewOnes() {
|
private informOldManagersForTheNewOnes() {
|
||||||
this._emailService.sendEmail(
|
this._emailService.notifyForNewManagers(
|
||||||
this.properties.adminToolsAPIURL + '/notifyForNewManagers/' + this.communityId,
|
this.properties, this.communityId,
|
||||||
Composer.composeEmailToInformOldManagersForTheNewOnes(this.community.title, this.communityId,
|
Composer.composeEmailToInformOldManagersForTheNewOnes(this.community.title, this.communityId,
|
||||||
this.firstVersionOfManagers,
|
this.firstVersionOfManagers,
|
||||||
this.community.managers)).subscribe(
|
this.community.managers)).subscribe(
|
||||||
|
|
Loading…
Reference in New Issue