Browse Source

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

Fixed both import types active on import dialog open
pull/12512/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
a01415e9ac
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/shared/import-export/import-dialog.component.ts

2
ui-ngx/src/app/shared/import-export/import-dialog.component.ts

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

Loading…
Cancel
Save