From 09a507109a503a015594d92c9f807141f6f6030c Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 18 May 2021 16:13:03 +0200 Subject: [PATCH] check validity and display send toast --- src/app/features/administration/form/form.component.html | 4 ++-- src/app/features/administration/form/form.component.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/features/administration/form/form.component.html b/src/app/features/administration/form/form.component.html index 0341b6ac..091b6ada 100644 --- a/src/app/features/administration/form/form.component.html +++ b/src/app/features/administration/form/form.component.html @@ -18,8 +18,8 @@ {{ 'creation.want' | translate }}

- - + + diff --git a/src/app/features/administration/form/form.component.ts b/src/app/features/administration/form/form.component.ts index ac8c3ad5..8d92436f 100644 --- a/src/app/features/administration/form/form.component.ts +++ b/src/app/features/administration/form/form.component.ts @@ -180,6 +180,7 @@ export class FormComponent implements OnInit { ); } else { if (this.form.valid) { + this.toastService.display("C'est parti!"); this.apiService.createPoll(newpoll).then( (resp: any) => { this.pollService.updateCurrentPoll(resp.data.poll);