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

View File

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