Read url from property

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@53957 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-11-25 19:11:34 +00:00
parent d206bf5c68
commit 3ad5e53db2
2 changed files with 6 additions and 2 deletions

View File

@ -223,7 +223,7 @@ export class CommunityEditFormComponent implements OnInit{
}
private sendMailToNewManagers(managers: any) {
this._emailService.sendEmail("http://duffy.di.uoa.gr:8080/uoa-admin-tools/sendMail", this.composeEmailForNewManager(this.community.title, managers)).subscribe(
this._emailService.sendEmail(this.properties.sendMailUrl, this.composeEmailForNewManager(this.community.title, managers)).subscribe(
res => {
console.log("The email has been sent successfully!")
},
@ -232,7 +232,7 @@ export class CommunityEditFormComponent implements OnInit{
}
private informOldManagersForTheNewOnes(managers: any) {
this._emailService.sendEmail("http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewManagers/"+ this.communityId, this.composeEmailToInformOldManagersForTheNewOnes(this.community.title, this.communityId, this.firstVersionOfManagers)).subscribe(
this._emailService.sendEmail(this.properties.notifyForNewManagers + this.communityId, this.composeEmailToInformOldManagersForTheNewOnes(this.community.title, this.communityId, this.firstVersionOfManagers)).subscribe(
res => {
console.log("The email has been sent successfully!")
},

View File

@ -98,6 +98,10 @@
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
"searchLinkToAdvancedPeople" : "/search/advanced/people",
"sendMailUrl": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/sendMail",
"notifyForNewManagers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewManagers/",
"notifyForNewSubscribers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/",
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
"showLastIndexInformationLink" : false,