Skip to content

Commit

Permalink
fix(productView): ent-4247 disable take a tour header button (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Dec 6, 2021
1 parent 9b42a59 commit 19d3461
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
4 changes: 4 additions & 0 deletions src/components/pageLayout/pageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import { ExternalLinkAltIcon } from '@patternfly/react-icons';
import { helpers } from '../../common';
import { translate } from '../i18n/i18n';

/**
* ToDo: Review removing the "includeTour" prop and associated button code.
* ...instead of disabling it, ENT-4247
*/
/**
* Render a platform page header.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`ProductView Component should allow custom product views: custom graphCa
className=""
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="lorem ipsum product label"
t={[Function]}
>
Expand Down Expand Up @@ -138,7 +138,7 @@ exports[`ProductView Component should allow custom product views: custom toolbar
className=""
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="lorem ipsum product label"
t={[Function]}
>
Expand Down Expand Up @@ -215,7 +215,7 @@ exports[`ProductView Component should allow custom product views: custom toolbar
className=""
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="lorem ipsum product label"
t={[Function]}
>
Expand Down Expand Up @@ -292,7 +292,7 @@ exports[`ProductView Component should render a non-connected component: non-conn
className=""
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="lorem ipsum product label"
t={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`ProductViewMissing Component should render a non-connected component: n
className="curiosity-missing-view"
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="missing"
t={[Function]}
>
Expand Down Expand Up @@ -151,7 +151,7 @@ exports[`ProductViewMissing Component should render a predictable set of product
className="curiosity-missing-view"
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="missing"
t={[Function]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`ProductViewOpenShiftContainer Component should render a non-connected c
className=""
>
<PageHeader
includeTour={true}
includeTour={false}
productLabel="lorem ipsum product label"
t={[Function]}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/productView/productView.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const ProductView = ({ routeDetail, t, toolbarGraph, toolbarGraphDescription, to

return (
<PageLayout>
<PageHeader productLabel={productLabel} includeTour>
<PageHeader productLabel={productLabel}>
{t(`curiosity-view.title`, { appName: helpers.UI_DISPLAY_NAME, context: productLabel })}
</PageHeader>
<PageMessages>
Expand Down
4 changes: 1 addition & 3 deletions src/components/productView/productViewMissing.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ const ProductViewMissing = ({ availableProductsRedirect, t }) => {

return (
<PageLayout className="curiosity-missing-view">
<PageHeader productLabel="missing" includeTour>
{t(`curiosity-view.title`, { appName: helpers.UI_DISPLAY_NAME })}
</PageHeader>
<PageHeader productLabel="missing">{t(`curiosity-view.title`, { appName: helpers.UI_DISPLAY_NAME })}</PageHeader>
<PageSection isFilled>
<Gallery hasGutter>
{availableProducts.map(product => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const ProductViewOpenShiftContainer = ({ routeDetail, t }) => {

return (
<PageLayout>
<PageHeader productLabel={viewProductLabel} includeTour>
<PageHeader productLabel={viewProductLabel}>
{t(`curiosity-view.title`, { appName: helpers.UI_DISPLAY_NAME, context: viewProductLabel })}
</PageHeader>
<PageColumns>{productConfig.map(config => renderProduct(config, uomValue))}</PageColumns>
Expand Down

0 comments on commit 19d3461

Please sign in to comment.