fix demo build

This commit is contained in:
Tykayn 2021-11-12 11:09:43 +01:00 committed by tykayn
parent 2f1309bf6f
commit 52ff89f1f5
4 changed files with 11 additions and 18 deletions

View File

@ -23,7 +23,7 @@ export class FormComponent implements OnInit {
private cd: ChangeDetectorRef, private cd: ChangeDetectorRef,
private uuidService: UuidService, private uuidService: UuidService,
private toastService: ToastService, private toastService: ToastService,
private pollService: PollService, public pollService: PollService,
private router: Router, private router: Router,
public route: ActivatedRoute, public route: ActivatedRoute,
private apiService: ApiService, private apiService: ApiService,

View File

@ -54,12 +54,9 @@
</button> </button>
</div> </div>
<div class="column"> <div class="column">
<!-- [disabled]="form.invalid"--> <app-errors-list [form]="pollService.form"></app-errors-list>
<button
class="btn is-primary" <button class="btn is-primary" (click)="createPoll()" [disabled]="!pollService.form.valid">
(click)="createPoll()"
[disabled]="!pollService.form.valid || !pollService.form.valid"
>
<i class="fa fa-save"></i> <i class="fa fa-save"></i>
Enregistrer le sondage Enregistrer le sondage
</button> </button>

View File

@ -15,7 +15,7 @@
<div class="actions"> <div class="actions">
<button <button
(click)="pollService.addTime()" (click)="pollService.addTime()"
*ngIf="'false' === pollService.allowSeveralHours" *ngIf="false == pollService.allowSeveralHours"
class="btn btn--primary" class="btn btn--primary"
id="add_time_button" id="add_time_button"
> >
@ -24,7 +24,7 @@
</button> </button>
<button <button
(click)="pollService.removeAllTimes()" (click)="pollService.removeAllTimes()"
*ngIf="'false' === pollService.allowSeveralHours" *ngIf="false == pollService.allowSeveralHours"
class="btn btn--warning" class="btn btn--warning"
id="remove_time_button" id="remove_time_button"
> >
@ -33,7 +33,7 @@
</button> </button>
<button <button
(click)="pollService.resetTimes()" (click)="pollService.resetTimes()"
*ngIf="'false' === pollService.allowSeveralHours" *ngIf="false == pollService.allowSeveralHours"
class="btn btn--warning" class="btn btn--warning"
id="reset_time_button" id="reset_time_button"
> >
@ -42,7 +42,7 @@
</button> </button>
</div> </div>
<div *ngIf="'false' === pollService.allowSeveralHours" class="identical-dates"> <div *ngIf="false == pollService.allowSeveralHours" class="identical-dates">
<div cdkDropList class="example-list" (cdkDropListDropped)="drop($event)"> <div cdkDropList class="example-list" (cdkDropListDropped)="drop($event)">
<div *ngFor="let time of pollService.timeList; index as id" class="time-choice" cdkDrag> <div *ngFor="let time of pollService.timeList; index as id" class="time-choice" cdkDrag>
<label for="timeChoices_{{ id }}"> <label for="timeChoices_{{ id }}">
@ -79,13 +79,6 @@
[showWeek]="true" [showWeek]="true"
></p-calendar> ></p-calendar>
</div> </div>
<!-- <div class="day-time">-->
<!-- <app-time-list></app-time-list>-->
<!-- </div>-->
<!-- <div class="debug">-->
<!-- <pre>{{ pollService.calendar | json }}</pre>-->
<!-- <pre>{{ 'calendar_widget' | translate }}</pre>-->
<!-- </div>-->
</div> </div>
</div> </div>
<div class="columns"> <div class="columns">

View File

@ -7,3 +7,6 @@
color: white; color: white;
border: solid 2px white; border: solid 2px white;
} }
.validation-error-list {
margin: 2em;
}