Add headingLevels to Title, minor improvements

Signed-off-by: Vadiem Janssens <info@vadiemjanssens.nl>
This commit is contained in:
Vadiem Janssens 2020-06-19 09:47:54 +02:00 committed by John Mitchell
parent 12b87fca8c
commit c9cfaf65a0
2 changed files with 12 additions and 13 deletions

View File

@ -555,7 +555,7 @@ function JobTemplateForm({
<SubFormLayout>
{allowCallbacks && (
<>
<Title size="md">
<Title size="md" headingLevel="h4">
{i18n._(t`Provisioning Callback details`)}
</Title>
<FormColumnLayout>
@ -580,13 +580,14 @@ function JobTemplateForm({
}
/>
</FormColumnLayout>
<br />
</>
)}
{allowCallbacks && enableWebhooks && (<br />)}
{enableWebhooks && (
<>
<Title size="md">{i18n._(t`Webhook details`)}</Title>
<Title size="md" headingLevel="h4">{i18n._(t`Webhook details`)}</Title>
<FormColumnLayout>
<WebhookSubForm
enableWebhooks={enableWebhooks}

View File

@ -215,15 +215,13 @@ function WorkflowJobTemplateForm({
</FormGroup>
{enableWebhooks && (
<>
<SubFormLayout>
<Title size="md">{i18n._(t`Webhook details`)}</Title>
<WebhookSubForm
enableWebhooks={enableWebhooks}
templateType={template.type}
/>
</SubFormLayout>
</>
<SubFormLayout>
<Title size="md" headingLevel="h4">{i18n._(t`Webhook details`)}</Title>
<WebhookSubForm
enableWebhooks={enableWebhooks}
templateType={template.type}
/>
</SubFormLayout>
)}
{submitError && <FormSubmitError error={submitError} />}