From 4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877 Mon Sep 17 00:00:00 2001 From: Nassim Bounouas Date: Fri, 21 Jun 2019 08:49:35 +0200 Subject: Feature/subject in contact form (#1926) * #1915 Add a subject to contact form and add it to email sent * #1915 Add subject to contact form tests * #1915 Contact form test corrected && tslint correction --- client/src/app/shared/instance/instance.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/instance') diff --git a/client/src/app/shared/instance/instance.service.ts b/client/src/app/shared/instance/instance.service.ts index 61321ecce..d0c96941d 100644 --- a/client/src/app/shared/instance/instance.service.ts +++ b/client/src/app/shared/instance/instance.service.ts @@ -22,10 +22,11 @@ export class InstanceService { .pipe(catchError(res => this.restExtractor.handleError(res))) } - contactAdministrator (fromEmail: string, fromName: string, message: string) { + contactAdministrator (fromEmail: string, fromName: string, subject: string, message: string) { const body = { fromEmail, fromName, + subject, body: message } -- cgit v1.2.3