aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about/about-instance/contact-admin-modal.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+about/about-instance/contact-admin-modal.component.ts')
-rw-r--r--client/src/app/+about/about-instance/contact-admin-modal.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+about/about-instance/contact-admin-modal.component.ts b/client/src/app/+about/about-instance/contact-admin-modal.component.ts
index 37e9feacb..cbc759881 100644
--- a/client/src/app/+about/about-instance/contact-admin-modal.component.ts
+++ b/client/src/app/+about/about-instance/contact-admin-modal.component.ts
@@ -83,18 +83,18 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit {
83 const body = this.form.value[ 'body' ] 83 const body = this.form.value[ 'body' ]
84 84
85 this.instanceService.contactAdministrator(fromEmail, fromName, subject, body) 85 this.instanceService.contactAdministrator(fromEmail, fromName, subject, body)
86 .subscribe( 86 .subscribe({
87 () => { 87 next: () => {
88 this.notifier.success($localize`Your message has been sent.`) 88 this.notifier.success($localize`Your message has been sent.`)
89 this.hide() 89 this.hide()
90 }, 90 },
91 91
92 err => { 92 error: err => {
93 this.error = err.status === HttpStatusCode.FORBIDDEN_403 93 this.error = err.status === HttpStatusCode.FORBIDDEN_403
94 ? $localize`You already sent this form recently` 94 ? $localize`You already sent this form recently`
95 : err.message 95 : err.message
96 } 96 }
97 ) 97 })
98 } 98 }
99 99
100 private prefillForm (prefill: Prefill) { 100 private prefillForm (prefill: Prefill) {