diff options
author | Nassim Bounouas <NassimBounouas@users.noreply.github.com> | 2019-06-21 08:49:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-21 08:49:35 +0200 |
commit | 4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877 (patch) | |
tree | f7fb09aa655f954b8d9833cd2215f6fada5721a6 /client/src/app/shared/instance | |
parent | d1ea2a988d05e1eca4066efb99c5f943f5267a78 (diff) | |
download | PeerTube-4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877.tar.gz PeerTube-4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877.tar.zst PeerTube-4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877.zip |
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
Diffstat (limited to 'client/src/app/shared/instance')
-rw-r--r-- | client/src/app/shared/instance/instance.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
22 | .pipe(catchError(res => this.restExtractor.handleError(res))) | 22 | .pipe(catchError(res => this.restExtractor.handleError(res))) |
23 | } | 23 | } |
24 | 24 | ||
25 | contactAdministrator (fromEmail: string, fromName: string, message: string) { | 25 | contactAdministrator (fromEmail: string, fromName: string, subject: string, message: string) { |
26 | const body = { | 26 | const body = { |
27 | fromEmail, | 27 | fromEmail, |
28 | fromName, | 28 | fromName, |
29 | subject, | ||
29 | body: message | 30 | body: message |
30 | } | 31 | } |
31 | 32 | ||