From b114f0d25a6ef7ca78d98d0dda8cd3080e868fb2 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Thu, 13 Dec 2018 12:34:05 +0000 Subject: [PATCH] Remove unused methods, there are in library's composer git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@54359 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../community-edit-form.component.ts | 60 ------------------- 1 file changed, 60 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 2641671..e70dbd9 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 @@ -241,14 +241,6 @@ export class CommunityEditFormComponent implements OnInit{ }, error => console.log(error) ); - - // this._emailService.sendEmail(this.properties.adminToolsAPIURL + "/sendMail/", - // this.composeEmailForNewManager(this.community.title, managers)).subscribe( - // res => { - // console.log("The email has been sent successfully!") - // }, - // error => console.log(error) - // ); } private informOldManagersForTheNewOnes(managers: any) { @@ -261,58 +253,6 @@ export class CommunityEditFormComponent implements OnInit{ }, error => console.log(error) ); - - // this._emailService.sendEmail(this.properties.adminToolsAPIURL + "/notifyForNewManagers/" + this.communityId, - // this.composeEmailToInformOldManagersForTheNewOnes(this.community.title, - // this.communityId, - // this.firstVersionOfManagers)).subscribe( - // res => { - // console.log("The email has been sent successfully!") - // }, - // error => console.log(error) - // ); - } - - private composeEmailForNewManager(communityName: string, newCommunityManagers: any): Email { - this.email.subject = "[OpenAIRE-Connect] " + communityName + ": Welcome new manager"; - this.email.body = "

Welcome to OpenAIRE Connect!

" - + "

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. " - + "
The administrative rights are associated to the e-mail address, that was used to send you this message." - + " If you login with an account associated to a different email, please contact us" - + " or your colleagues, that already have access to the administration tool, to update your e-mail.
" - + "You can access the administration tool by clicking the \"Manage\" button that will be available in the top right corner of the dashboard." - + "

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

If you are not responsible for this community, please " - + "contact us.

"; - this.email.recipients = newCommunityManagers; - - console.log(this.email); - - return this.email; - } - - // TODO find the right place to write it - private composeEmailToInformOldManagersForTheNewOnes(communityName: string, communityId: string, firstVersionOfManagers: any) : Email { - 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.join(', ') + "

" - + "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; } private subscribeNewManagers(newManagers: string[]): boolean {