UI: Render PropagationConfig on Propagation tab

This commit is contained in:
Ilija Lazoroski 2022-07-12 18:26:17 +02:00
parent f8e4c5cddc
commit 457a70390c
1 changed files with 13 additions and 7 deletions

View File

@ -8,6 +8,7 @@ import {faCheck} from '@fortawesome/free-solid-svg-icons/faCheck';
import {faExclamationCircle} from '@fortawesome/free-solid-svg-icons/faExclamationCircle';
import {formValidationFormats} from '../configuration-components/ValidationFormats';
import transformErrors from '../configuration-components/ValidationErrorMessages';
import PropagationConfig from '../configuration-components/PropagationConfig'
import UnsafeConfigOptionsConfirmationModal
from '../configuration-components/UnsafeConfigOptionsConfirmationModal.js';
import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js';
@ -302,13 +303,18 @@ class ConfigurePageComponent extends AuthComponent {
formProperties['formData'],
formProperties['uiSchema']);
return (
<div>
<Form {...formProperties} key={displayedSchema.title}>
<button type='submit' className={'hidden'}>Submit</button>
</Form>
</div>
)
if (this.state.selectedSection === 'propagation') {
console.log(formProperties['uiSchema']);
return (<PropagationConfig {...formProperties}/>)
} else {
return (
<div>
<Form {...formProperties} key={displayedSchema.title}>
<button type='submit' className={'hidden'}>Submit</button>
</Form>
</div>
)
}
};
setPbaFilenameWindows = (filename) => {