Blueprint: enable import/export in ephemeral
Adds ability to enable a feature flag in Ephemeral environment by default.
This commit is contained in:
parent
0f7d9457c6
commit
549ef37ab7
4 changed files with 30 additions and 5 deletions
|
|
@ -19,7 +19,6 @@ import {
|
|||
PageHeader,
|
||||
PageHeaderTitle,
|
||||
} from '@redhat-cloud-services/frontend-components';
|
||||
import { useFlag } from '@unleash/proxy-client-react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
import {
|
||||
|
|
@ -29,6 +28,7 @@ import {
|
|||
} from '../../constants';
|
||||
import { resolveRelPath } from '../../Utilities/path';
|
||||
import './ImageBuilderHeader.scss';
|
||||
import { useFlagWithEphemDefault } from '../../Utilities/useGetEnvironment';
|
||||
import { ImportBlueprintModal } from '../Blueprints/ImportBlueprintModal';
|
||||
|
||||
type ImageBuilderHeaderPropTypes = {
|
||||
|
|
@ -96,7 +96,9 @@ export const ImageBuilderHeader = ({
|
|||
inWizard,
|
||||
}: ImageBuilderHeaderPropTypes) => {
|
||||
const navigate = useNavigate();
|
||||
const importExportFlag = useFlag('image-builder.import.enabled');
|
||||
const importExportFlag = useFlagWithEphemDefault(
|
||||
'image-builder.import.enabled'
|
||||
);
|
||||
const [showImportModal, setShowImportModal] = useState(false);
|
||||
const isOnBlueprintsTab = activeTab === 0;
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue