Removed the use of any and enabled the rule in eslint.

Now according to me the conversion is final.
Testing is required.
This commit is contained in:
2020-11-24 08:03:43 +05:30
parent 715e35ef38
commit 2972203148
92 changed files with 610 additions and 378 deletions

View File

@ -61,9 +61,7 @@
<mat-header-cell *matHeaderCellDef>Prints</mat-header-cell>
<mat-cell *matCellDef="let row; let i = index" class="no-bg">
{{ row.prints }}
<mat-icon *ngIf="!$any(form.controls.attendances).controls[i].pristine"
>new_releases</mat-icon
>
<mat-icon *ngIf="!attendancesArray.controls[i].pristine">new_releases</mat-icon>
<mat-chip-list class="no-bg">
<mat-chip
*ngIf="row.hoursWorked.length"

View File

@ -9,12 +9,14 @@ describe('AttendanceComponent', () => {
let component: AttendanceComponent;
let fixture: ComponentFixture<AttendanceComponent>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [AttendanceComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
declarations: [AttendanceComponent],
}).compileComponents();
}),
);
beforeEach(() => {
fixture = TestBed.createComponent(AttendanceComponent);

View File

@ -100,4 +100,8 @@ export class AttendanceComponent implements OnInit {
});
return this.info;
}
get attendancesArray(): FormArray {
return this.form.get('attendances') as FormArray;
}
}