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
This commit is contained in:
parent
54314fdaaf
commit
b114f0d25a
|
@ -241,14 +241,6 @@ export class CommunityEditFormComponent implements OnInit{
|
||||||
},
|
},
|
||||||
error => console.log(error)
|
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) {
|
private informOldManagersForTheNewOnes(managers: any) {
|
||||||
|
@ -261,58 +253,6 @@ export class CommunityEditFormComponent implements OnInit{
|
||||||
},
|
},
|
||||||
error => console.log(error)
|
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 = "<div style='font-size:14px;'><p>Welcome to OpenAIRE Connect!</p>"
|
|
||||||
+ "<p>You are receiving this e-mail as you were assigned as manager of the community <a href='https://beta."
|
|
||||||
+ this.communityId + ".openaire.eu/'>" + "\"" + communityName + "\"" + "</a> dashboard. "
|
|
||||||
+ "In order to access the administration section of your community you must first login using one of the available options. "
|
|
||||||
+ "<br>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 <a href='mailto:helpdesk@openaire.eu'>contact us</a>"
|
|
||||||
+ " or your colleagues, that already have access to the administration tool, to update your e-mail. <br>"
|
|
||||||
+ "You can access the administration tool by clicking the \"Manage\" button that will be available in the top right corner of the dashboard."
|
|
||||||
+ "</p>"
|
|
||||||
+ "OpenAIRE team<br>" + "<a href='https://www.openaire.eu'>www.openaire.eu</a><br>"
|
|
||||||
+ "<p style='font-size:11px;'>If you are not responsible for this community, please "
|
|
||||||
+ "<a href='mailto:openaire.test@gmail.com'>contact us</a>.</p></div>";
|
|
||||||
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 = "<div style='font-size:14px;'>"
|
|
||||||
+ "<p>There are updates in the managers list for \"" + communityName + "\" community.<br>"
|
|
||||||
+ "The list of managers is: " + this.community.managers.join(', ') + "</p>"
|
|
||||||
+ "OpenAIRE team<br>" + "<a href='https://www.openaire.eu'>www.openaire.eu</a><br>"
|
|
||||||
+ "<p style='font-size:11px;'>You are receiving this e-mail as manager of the community "
|
|
||||||
+ "<a href='https://beta." + communityId + ".openaire.eu/'>" + communityName + "</a>. "
|
|
||||||
+ "If you are not responsible for this community, please "
|
|
||||||
+ "<a href='mailto:openaire.test@gmail.com'>contact us</a>."
|
|
||||||
+ "<br>"
|
|
||||||
+ "Click <a href='https://beta.admin.connect.openaire.eu/manage-user-notifications?communityId=" + communityId
|
|
||||||
+ "'>here</a> to manage your notification settings. </p>"
|
|
||||||
+ "</div>";
|
|
||||||
|
|
||||||
this.emailToInform.recipients = firstVersionOfManagers;
|
|
||||||
|
|
||||||
return this.emailToInform;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private subscribeNewManagers(newManagers: string[]): boolean {
|
private subscribeNewManagers(newManagers: string[]): boolean {
|
||||||
|
|
Loading…
Reference in New Issue