upgrade ng 11 to 12: Correct types errors

- I have no idea what I corrected. This has probably broke the code
This commit is contained in:
bmartins 2023-03-15 15:21:03 +01:00
parent b754c758f4
commit 7b82d281c4
3 changed files with 8 additions and 6 deletions

View File

@ -15,7 +15,7 @@ export class TimeListComponent implements OnInit {
@Input()
public timeSlices: TimeSlices[];
@Input()
public prefix_choice_id = '';
public prefix_choice_id: number;
constructor(
@Inject(DOCUMENT) private document: any,

View File

@ -30,7 +30,7 @@
<!-- [minDate]="minDate"-->
<p-calendar
[(ngModel)]="pollService.calendar"
firstDayOfWeek="1"
[firstDayOfWeek]="1"
selectionMode="multiple"
inputId="multiple"
[showButtonBar]="true"

View File

@ -1,15 +1,17 @@
<div class="text-choices rounded-block" *ngIf="poll.kind == 'text'">
<div class="text-choice" *ngFor="let choice of poll.choices_grouped; index as ii">
<div class="text-choice" *ngFor="let choice_groupe of poll.choices_grouped; index as ii">
<div class="choice-label">
{{ choice.date_string }}
{{ choice_groupe.date_string }}
</div>
<div *ngFor="let choice of choice_groupe.choices">
<app-choice-table [choice]="choice" [detailledDisplay]="detailledDisplay"></app-choice-table>
</div>
<app-choice-table [choice]="choice" [detailledDisplay]="detailledDisplay"></app-choice-table>
</div>
</div>
<div class="date-choices" *ngIf="poll.kind == 'date'">
<div class="rounded-block" *ngFor="let group of poll.choices_grouped">
<div class="date-label">
{{ showAsDate(group.date_string) | date: 'fullDate':'Europe/Paris' }}
{{ showAsDate(group.date_string) | date : 'fullDate' : 'Europe/Paris' }}
</div>
<div class="list-of-choices">
<div class="date-choices">