Merge pull request #12442 from maxunbearable/fix/5395-import-dialog

Fixed both import types active on import dialog open
This commit is contained in:
Igor Kulikov 2025-01-22 18:02:56 +02:00 committed by GitHub
commit a01415e9ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)