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 98d8700..5c56e44 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 @@ -245,7 +245,7 @@ export class CommunityEditFormComponent implements OnInit{ 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"; + "OpenAIRE team
" + "www.openaire.eu"; this.email.recipients = newCommunityManagers; console.log(this.email); diff --git a/src/app/pages/usernotifications/manage-user-notifications.service.ts b/src/app/pages/usernotifications/manage-user-notifications.service.ts index a781efb..53832eb 100644 --- a/src/app/pages/usernotifications/manage-user-notifications.service.ts +++ b/src/app/pages/usernotifications/manage-user-notifications.service.ts @@ -4,6 +4,7 @@ import {Http, Response, Headers, RequestOptions} from '@angular/http'; import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties'; import {UserNotificationsRights} from './userNotificationsRights'; +import {CustomOptions} from '../../openaireLibrary/services/servicesUtils/customOptions.class'; @Injectable() export class ManageUserNotificationsService { @@ -23,7 +24,7 @@ export class ManageUserNotificationsService { console.log(body); - return this.http.post(url, body, options) + return this.http.post(url, body, CustomOptions.getAuthOptionsWithBody()) .do(request => console.log("Insert Response:"+request.status)); }