Skip to content

Commit

Permalink
Merge pull request #871 from metalice/bz-2124557-add-description-to-m…
Browse files Browse the repository at this point in the history
…igration-policy-page

Bug 2124557: Add description of migration policy to migration policy page
  • Loading branch information
openshift-merge-robot authored Sep 13, 2022
2 parents 112a12d + 38ea23e commit 5f31f7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const MigrationPolicyDetailsSection: React.FC<MigrationPolicyDetailsSectionProps
<GridItem span={5}>
<DescriptionList>
<MigrationPolicyDescriptionItem title={t('Name')} description={mp?.metadata?.name} />
<MigrationPolicyDescriptionItem
title={t('Description')}
description={mp?.metadata?.annotations?.description}
/>
<>
<DescriptionListTermHelpTextButton
onClick={() =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';

import { NO_DATA_DASH } from '@kubevirt-utils/resources/vm/utils/constants';
import {
DescriptionListDescription,
DescriptionListGroup,
Expand All @@ -20,7 +21,7 @@ const MigrationPolicyDescriptionItem: React.FC<MigrationPolicyDescriptionItemPro
<DescriptionListTermHelpText>
<DescriptionListTermHelpTextButton>{title}</DescriptionListTermHelpTextButton>
</DescriptionListTermHelpText>
<DescriptionListDescription>{description}</DescriptionListDescription>
<DescriptionListDescription>{description || NO_DATA_DASH}</DescriptionListDescription>
</DescriptionListGroup>
);

Expand Down

0 comments on commit 5f31f7d

Please sign in to comment.