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 }}
|
{{ 'creation.want' | translate }}
|
||||||
</p>
|
</p>
|
||||||
<!-- <div class="step-choices" *ngIf="currentStep === 'base'">-->
|
<!-- <div class="step-choices" *ngIf="currentStep === 'base'">-->
|
||||||
<!-- <app-kind-select [form]="form"></app-kind-select>-->
|
<app-kind-select [form]="form"></app-kind-select>
|
||||||
<!-- <app-base-config [form]="form"></app-base-config>-->
|
<app-base-config [form]="form"></app-base-config>
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- <div class="step-choices" *ngIf="currentStep === 'choices'"> </div>-->
|
<!-- <div class="step-choices" *ngIf="currentStep === 'choices'"> </div>-->
|
||||||
<app-date-select *ngIf="form.value && form.value.kind == 'date'" [form]="form"></app-date-select>
|
<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 {
|
} else {
|
||||||
if (this.form.valid) {
|
if (this.form.valid) {
|
||||||
|
this.toastService.display("C'est parti!");
|
||||||
this.apiService.createPoll(newpoll).then(
|
this.apiService.createPoll(newpoll).then(
|
||||||
(resp: any) => {
|
(resp: any) => {
|
||||||
this.pollService.updateCurrentPoll(resp.data.poll);
|
this.pollService.updateCurrentPoll(resp.data.poll);
|
||||||
|
Loading…
Reference in New Issue
Block a user