From f2d0bacaf87aa104976aade2595db3897f844f67 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Fri, 23 Nov 2018 21:29:11 +0000 Subject: [PATCH] Fix email's subject and body git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@53949 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../community-edit-form.component.ts | 32 ++++++++----------- 1 file changed, 13 insertions(+), 19 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 4c31769..5ef2f7e 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 @@ -240,21 +240,8 @@ export class CommunityEditFormComponent implements OnInit{ ); } - // TODO find the right place to write it - // private composeEmailForNewManager(communityName: string, newCommunityManagers: any): Email { - // this.email.subject = "[OpenAIRE-Connect] " + communityName + ": Managers list notification"; - // this.email.body = "

There are updates in the managers list for " + communityName + " community.
" - // + "The list of managers is: " + newCommunityManagers + "



" + - // "OpenAIRE team
" + "www.openaire.eu"; - // this.email.recipients = newCommunityManagers; - // - // console.log(this.email); - // - // return this.email; - // } - private composeEmailForNewManager(communityName: string, newCommunityManagers: any): Email { - this.email.subject = "[OpenAIRE-Connect] " + communityName + ": Managers list notification"; + this.email.subject = "[OpenAIRE-Connect] " + communityName + ": Manager"; this.email.body = "

You are receiving this e-mail as you were assigned as manager of the community " + "\"" + communityName + "\"" + " dashboard. " + "In order to access the administration section of your community you must first login using one of the available options. " @@ -275,11 +262,18 @@ export class CommunityEditFormComponent implements OnInit{ // TODO find the right place to write it private composeEmailToInformOldManagersForTheNewOnes(communityName: string, communityId: string, firstVersionOfManagers: any) : Email { - this.emailToInform.subject = "[OpenAIRE-Connect]" + communityName + ": New subscriber notification"; - this.emailToInform.body = "

There is a new subscriber for " + communityName + - "community. Click here to manage the subscibers list.



" + - "OpenAIRE team
"+ "www.openaire.eu"; + this.emailToInform.subject = "[OpenAIRE-Connect] " + communityName + ": Managers list notification"; + this.emailToInform.body = "

There are updates in the managers list for \"" + communityName + "\" community.
" + + "The list of managers is: " + this.community.managers + "


" + + "OpenAIRE team
" + "www.openaire.eu" + + "

You are receiving this e-mail as manager of the community " + + "" + communityName + ". " + + "If you are not responsible for this community, please " + + "contact us." + + "
" + + "Click here to manage your notification settings.

"; +; this.emailToInform.recipients = firstVersionOfManagers; return this.emailToInform;