Skip to content

Commit

Permalink
task form components [ci:force]
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Jan 7, 2025
1 parent b986fe4 commit 2368add
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,16 @@ export class GroupCloudWidgetComponent extends WidgetComponent implements OnInit
this.preSelectGroup = this.field.value ? this.field.value : [];
this.validate = this.field.readOnly ? false : true;
}
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
(this.search = new UntypedFormControl({ value: '', disabled: this.field.readOnly }, [])),
this.search.statusChanges
.pipe(
filter((value: string) => value === 'INVALID'),
takeUntilDestroyed(this.destroyRef)
)
.subscribe(() => {
this.field.markAsInvalid();
this.field.form.markAsInvalid();
});
this.search = new UntypedFormControl({ value: '', disabled: this.field.readOnly }, []);
this.search.statusChanges
.pipe(
filter((value: string) => value === 'INVALID'),
takeUntilDestroyed(this.destroyRef)
)
.subscribe(() => {
this.field.markAsInvalid();
this.field.form.markAsInvalid();
});

this.search.statusChanges
.pipe(
Expand Down

0 comments on commit 2368add

Please sign in to comment.