Skip to content

Commit

Permalink
Merge pull request #11068 from bipuladh/fix-ibm-dev-badge
Browse files Browse the repository at this point in the history
[release-4.9] Bug 2055100: Revert "Add Dev Preview tag for IBM FlashSystem"
  • Loading branch information
openshift-merge-robot committed Feb 23, 2022
2 parents ec1dd11 + 49453dd commit 8d748bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
.odf-backing-storage__selection {
&--width {
width: 22rem;
}
&--spacer {
margin-right: var(--pf-global--spacer--md);
}
.odf-backing-storage__selection--width {
width: 22rem;
}

.odf-backing-storage__deployment-type {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { useTranslation } from 'react-i18next';
import { useFlag, DevPreviewBadge } from '@console/shared/src';
import { useFlag } 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, isStorageProviderDevPreview } from '../../external-storage';
import { SUPPORTED_EXTERNAL_STORAGE } from '../../external-storage';
import { StorageSystemKind } from '../../../../types';
import {
getODFCsv,
Expand Down Expand Up @@ -76,14 +76,13 @@ 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 odf-backing-storage__selection--spacer"
className="odf-backing-storage__selection--width"
onChange={handleSelection}
>
{selectOptions.map(({ displayName, model: { kind } }) => (
<FormSelectOption key={kind} value={kind} label={displayName} />
))}
</FormSelect>
{isStorageProviderDevPreview(selectedStorage) && <DevPreviewBadge />}
</FormGroup>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ export const SUPPORTED_EXTERNAL_STORAGE: ExternalStorage[] = [
canGoToNextStep: flashSystemCanGoToNextStep,
},
];

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

0 comments on commit 8d748bd

Please sign in to comment.