From 79654f5e8f35af4aa674f2b6c477d4dcac7b61ed Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 7 Apr 2020 17:29:12 +0000 Subject: [PATCH] [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 --- .../community-edit-form/community-edit-form.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/community/community-edit-form/community-edit-form.component.ts b/src/app/pages/community/community-edit-form/community-edit-form.component.ts index d3c2b62..a203084 100644 --- a/src/app/pages/community/community-edit-form/community-edit-form.component.ts +++ b/src/app/pages/community/community-edit-form/community-edit-form.component.ts @@ -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(