Skip to content

Commit

Permalink
Add Dev Preview tag for IBM FlashSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
bipuladh committed Nov 17, 2021
1 parent f0fc851 commit a083761
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
@@ -1,5 +1,10 @@
.odf-backing-storage__selection--width {
width: 22rem;
.odf-backing-storage__selection {
&--width {
width: 22rem;
}
&--spacer {
margin-right: var(--pf-global--spacer--md);
}
}

.odf-backing-storage__deployment-type {
Expand Down
@@ -1,7 +1,7 @@
import * as React from 'react';

import { useTranslation } from 'react-i18next';
import { useFlag } from '@console/shared/src';
import { useFlag, DevPreviewBadge } from '@console/shared/src';
import {
Form,
FormGroup,
Expand All @@ -19,7 +19,7 @@ import {
ClusterServiceVersionModel,
} from '@console/operator-lifecycle-manager/src';
import { AdvancedSection } from './advanced-section';
import { SUPPORTED_EXTERNAL_STORAGE } from '../../external-storage';
import { SUPPORTED_EXTERNAL_STORAGE, isStorageProviderDevPreview } from '../../external-storage';
import { StorageSystemKind } from '../../../../types';
import {
getODFCsv,
Expand Down Expand Up @@ -76,13 +76,14 @@ const ExternalSystemSelection: React.FC<ExternalSystemSelectionProps> = ({
aria-label={t('ceph-storage-plugin~Select external system from list')}
value={selectedStorage}
id="storage-platform-name"
className="odf-backing-storage__selection--width"
className="odf-backing-storage__selection--width odf-backing-storage__selection--spacer"
onChange={handleSelection}
>
{selectOptions.map(({ displayName, model: { kind } }) => (
<FormSelectOption key={kind} value={kind} label={displayName} />
))}
</FormSelect>
{isStorageProviderDevPreview(selectedStorage) && <DevPreviewBadge />}
</FormGroup>
);
};
Expand Down
Expand Up @@ -34,3 +34,5 @@ export const SUPPORTED_EXTERNAL_STORAGE: ExternalStorage[] = [
canGoToNextStep: flashSystemCanGoToNextStep,
},
];

export const isStorageProviderDevPreview = (kind: string) => kind === IBMFlashSystemModel.kind;

0 comments on commit a083761

Please sign in to comment.