Skip to content

Commit

Permalink
Fixes #36780 - Hide multiple titles on run job page
Browse files Browse the repository at this point in the history
  • Loading branch information
kmalyjur committed Sep 26, 2023
1 parent 0b75d16 commit 6a5fb77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/foreman_remote_execution/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Engine < ::Rails::Engine

initializer 'foreman_remote_execution.register_plugin', before: :finisher_hook do |_app|
Foreman::Plugin.register :foreman_remote_execution do
requires_foreman '>= 3.8'
requires_foreman '>= 3.9'
register_global_js_file 'global'
register_gettext

Expand Down
27 changes: 9 additions & 18 deletions webpack/JobWizard/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Title, Flex, FlexItem, Button } from '@patternfly/react-core';
import { Button } from '@patternfly/react-core';
import { translate as __ } from 'foremanReact/common/I18n';
import PageLayout from 'foremanReact/routes/common/PageLayout/PageLayout';
import { JobWizard } from './JobWizard';
Expand All @@ -18,23 +18,14 @@ const JobWizardPage = ({ location: { search } }) => {
header={title}
breadcrumbOptions={breadcrumbOptions}
searchable={false}
beforeToolbarComponent={
<Flex>
<FlexItem>
<Title headingLevel="h2" size="2xl">
{title}
</Title>
</FlexItem>
<FlexItem align={{ default: 'alignRight' }}>
<Button
variant="link"
component="a"
href={`/old/job_invocations/new${search}`}
>
{__('Use legacy form')}
</Button>
</FlexItem>
</Flex>
toolbarButtons={
<Button
variant="link"
component="a"
href={`/old/job_invocations/new${search}`}
>
{__('Use legacy form')}
</Button>
}
pageSectionType="wizard"
>
Expand Down

0 comments on commit 6a5fb77

Please sign in to comment.