From 3ad5e53db203c6ce56a348e231a6707d7d997aa9 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Sun, 25 Nov 2018 19:11:34 +0000 Subject: [PATCH] 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 --- .../community-edit-form/community-edit-form.component.ts | 4 ++-- src/assets/env-properties.json | 4 ++++ 2 files changed, 6 insertions(+), 2 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 9272c20..35b0f43 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 @@ -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!") }, diff --git a/src/assets/env-properties.json b/src/assets/env-properties.json index e43147a..0bf7260 100644 --- a/src/assets/env-properties.json +++ b/src/assets/env-properties.json @@ -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,