Skip to content

Commit

Permalink
Fixes no show of prompt step (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSCorey authored Jul 22, 2024
1 parent bfefa37 commit 2b3469b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { requestGet } from '../../../../common/crud/Data';
import { AwxItemsResponse } from '../../../common/AwxItemsResponse';
import { RequestError } from '../../../../common/crud/RequestError';
import { Credential } from '../../../interfaces/Credential';
import { shouldHideOtherStep } from '../WorkflowVisualizer/wizard/helpers';

export const formFieldToLaunchConfig = {
job_type: 'ask_job_type_on_launch',
Expand Down Expand Up @@ -276,7 +277,7 @@ export function LaunchWizard({
id: 'nodePromptsStep',
label: t('Prompts'),
inputs: <TemplateLaunchPromptStep defaultValues={initialValues} />,
hidden: () => !template.ask_inventory_on_launch,
hidden: () => shouldHideOtherStep(config),
validate: async (formData) => {
const missingCredentialTypes: string[] = [];
await requestGet<AwxItemsResponse<Credential>>(
Expand Down

0 comments on commit 2b3469b

Please sign in to comment.