mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
Space out the inventory warning
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { useField } from 'formik';
|
import { useField } from 'formik';
|
||||||
|
import styled from 'styled-components';
|
||||||
import { Alert } from '@patternfly/react-core';
|
import { Alert } from '@patternfly/react-core';
|
||||||
import InventoryStep from './InventoryStep';
|
import InventoryStep from './InventoryStep';
|
||||||
import StepName from './StepName';
|
import StepName from './StepName';
|
||||||
|
|
||||||
|
const InventoryAlert = styled(Alert)`
|
||||||
|
margin-bottom: 16px;
|
||||||
|
`;
|
||||||
|
|
||||||
const STEP_ID = 'inventory';
|
const STEP_ID = 'inventory';
|
||||||
|
|
||||||
export default function useInventoryStep(
|
export default function useInventoryStep(
|
||||||
@@ -53,11 +58,11 @@ function getStep(launchConfig, i18n, formError, resource) {
|
|||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
warningMessage={
|
warningMessage={
|
||||||
resource.type === 'workflow_job_template' ? (
|
resource.type === 'workflow_job_template' ? (
|
||||||
<Alert
|
<InventoryAlert
|
||||||
variant="warning"
|
variant="warning"
|
||||||
isInline
|
isInline
|
||||||
title={i18n._(
|
title={i18n._(
|
||||||
t`This inventory is applied to all job template nodes within this workflow that prompt for an inventory.`
|
t`This inventory is applied to all job template nodes within this workflow (${resource.name}) that prompt for an inventory.`
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
) : null
|
) : null
|
||||||
|
|||||||
Reference in New Issue
Block a user