Skip to content

Commit

Permalink
Expose experimental badge on Workflow Details page (new and old) (#485)…
Browse files Browse the repository at this point in the history
… (#488)

(cherry picked from commit 6d78369)

Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 0f5d441 commit 6e4580b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions public/pages/workflow_detail/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ import {
import { DataSourceViewConfig } from '../../../../../../src/plugins/data_source_management/public';
import { HeaderVariant } from '../../../../../../src/core/public';
import {
TopNavControlTextData,
TopNavControlData,
TopNavMenuIconData,
} from '../../../../../../src/plugins/navigation/public';
import { MountPoint } from '../../../../../../src/core/public';
import { getWorkflow, updateWorkflow, useAppDispatch } from '../../../store';
import { useFormikContext } from 'formik';
import { isEmpty, isEqual } from 'lodash';
import { ExperimentalBadge } from '../../../general_components';

interface WorkflowDetailHeaderProps {
workflow?: Workflow;
Expand Down Expand Up @@ -341,11 +342,19 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) {
<HeaderControl
setMountPoint={setAppRightControls}
controls={[
{
renderComponent: (
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="downLeft"
/>
),
},
{
text: `Last updated: ${workflowLastUpdated}`,
color: 'subdued',
className: 'workflow-detail-last-updated',
} as TopNavControlTextData,
} as TopNavControlData,
]}
/>
</>
Expand Down Expand Up @@ -402,6 +411,10 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) {
<EuiText color="subdued" size="s">
{`Last updated: ${workflowLastUpdated}`}
</EuiText>,
<ExperimentalBadge
popoverEnabled={true}
popoverAnchorPosition="downLeft"
/>,
]}
bottomBorder={false}
rightSideGroupProps={{
Expand Down

0 comments on commit 6e4580b

Please sign in to comment.