Fixed both import types active on import dialog open

This commit is contained in:
mpetrov 2025-01-14 11:50:33 +02:00
parent 34bd41ff4e
commit d660f60b82

View File

@ -71,7 +71,7 @@ export class ImportDialogComponent extends DialogComponent<ImportDialogComponent
this.importFormGroup = this.fb.group({
importType: ['file'],
fileContent: [null, [Validators.required]],
jsonContent: [null, [Validators.required]]
jsonContent: [{ value: null, disabled: true }, [Validators.required]]
});
this.importFormGroup.get('importType').valueChanges.pipe(
takeUntilDestroyed(this.destroyRef)