Skip to content

Commit 6a2f896

Browse files
committed
chore: Rename done props to ready
1 parent d88c20c commit 6a2f896

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/ngxerrors.directive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ export class NgxErrorsDirective implements OnChanges {
1818

1919
control: AbstractControl;
2020

21-
done: boolean = false;
21+
ready: boolean = false;
2222

2323
constructor(
2424
private form: FormGroupDirective
2525
) {}
2626

2727
get errors() {
28-
if (!this.done) return;
28+
if (!this.ready) return;
2929
return this.control.errors;
3030
}
3131

@@ -34,12 +34,12 @@ export class NgxErrorsDirective implements OnChanges {
3434
}
3535

3636
hasError(name: string) {
37-
if (!this.done) return;
37+
if (!this.ready) return;
3838
return this.control.hasError(name);
3939
}
4040

4141
getError(name: string) {
42-
if (!this.done) return;
42+
if (!this.ready) return;
4343
return this.control.getError(name);
4444
}
4545

@@ -56,7 +56,7 @@ export class NgxErrorsDirective implements OnChanges {
5656

5757
checkStatus() {
5858
const errors = this.control.errors;
59-
this.done = true;
59+
this.ready = true;
6060
if (!errors) return;
6161
for (const error in errors) {
6262
this.subject.next({ control: this.control, errorName: error });

0 commit comments

Comments
 (0)