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 uuidService: UuidService,
private toastService: ToastService,
private pollService: PollService,
public pollService: PollService,
private router: Router,
public route: ActivatedRoute,
private apiService: ApiService,

View File

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

View File

@ -15,7 +15,7 @@
<div class="actions">
<button
(click)="pollService.addTime()"
*ngIf="'false' === pollService.allowSeveralHours"
*ngIf="false == pollService.allowSeveralHours"
class="btn btn--primary"
id="add_time_button"
>
@ -24,7 +24,7 @@
</button>
<button
(click)="pollService.removeAllTimes()"
*ngIf="'false' === pollService.allowSeveralHours"
*ngIf="false == pollService.allowSeveralHours"
class="btn btn--warning"
id="remove_time_button"
>
@ -33,7 +33,7 @@
</button>
<button
(click)="pollService.resetTimes()"
*ngIf="'false' === pollService.allowSeveralHours"
*ngIf="false == pollService.allowSeveralHours"
class="btn btn--warning"
id="reset_time_button"
>
@ -42,7 +42,7 @@
</button>
</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 *ngFor="let time of pollService.timeList; index as id" class="time-choice" cdkDrag>
<label for="timeChoices_{{ id }}">
@ -79,13 +79,6 @@
[showWeek]="true"
></p-calendar>
</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 class="columns">

View File

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