Aw4751 eslint fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
2023-03-06 14:04:14 +01:00
parent 945c641503
commit 6555e68145
78 changed files with 655 additions and 655 deletions

View File

@@ -22,7 +22,7 @@ const after = (one: NgbDateStruct, two: NgbDateStruct) =>
})
export class SelectPeriodModalComponent {
private modalName: string = 'selectPeriodModal';
private modalName = 'selectPeriodModal';
private modalRef: NgbModalRef;
private dateAdapter = new NgbDateNativeAdapter();
hoveredDate: NgbDateStruct;
@@ -31,7 +31,7 @@ export class SelectPeriodModalComponent {
@ViewChild('content', { static: true }) _templateModal:ElementRef;
@Input() set modalState(_modalState:any) {;
@Input() set modalState(_modalState:any) {
if(_modalState == this.modalName) {
this.openModal()
} else if(this.modalRef) {
@@ -44,7 +44,7 @@ export class SelectPeriodModalComponent {
}
@Input() set endDate(_modalState: Date) {
var d = new Date(_modalState);
const d = new Date(_modalState);
d.setDate(d.getDate() - 1);
this.toDate = this.dateAdapter.fromModel(d);
}
@@ -80,7 +80,7 @@ export class SelectPeriodModalComponent {
handleSelect(event:MouseEvent) {
event.preventDefault();
if (this.fromDate && this.toDate && before(this.fromDate, this.toDate)) {
var endDate = new Date(this.dateAdapter.toModel(this.toDate));
const endDate = new Date(this.dateAdapter.toModel(this.toDate));
endDate.setDate(endDate.getDate() + 1);
this.onSelect.emit({startDate:this.dateAdapter.toModel(this.fromDate),endDate:endDate})
}