mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
check validity and display send toast
This commit is contained in:
parent
03cbb508c7
commit
09a507109a
@ -18,8 +18,8 @@
|
||||
{{ 'creation.want' | translate }}
|
||||
</p>
|
||||
<!-- <div class="step-choices" *ngIf="currentStep === 'base'">-->
|
||||
<!-- <app-kind-select [form]="form"></app-kind-select>-->
|
||||
<!-- <app-base-config [form]="form"></app-base-config>-->
|
||||
<app-kind-select [form]="form"></app-kind-select>
|
||||
<app-base-config [form]="form"></app-base-config>
|
||||
<!-- </div>-->
|
||||
<!-- <div class="step-choices" *ngIf="currentStep === 'choices'"> </div>-->
|
||||
<app-date-select *ngIf="form.value && form.value.kind == 'date'" [form]="form"></app-date-select>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user