Wizard: rely on feature flag constraints for openscap step title
Feature flags can be constrained to preview / stable.
This commit is contained in:
parent
ebfcbe2668
commit
ee19ba1546
1 changed files with 1 additions and 4 deletions
|
|
@ -68,7 +68,6 @@ import {
|
||||||
} from '../../store/wizardSlice';
|
} from '../../store/wizardSlice';
|
||||||
import { resolveRelPath } from '../../Utilities/path';
|
import { resolveRelPath } from '../../Utilities/path';
|
||||||
import { useFlag } from '../../Utilities/useGetEnvironment';
|
import { useFlag } from '../../Utilities/useGetEnvironment';
|
||||||
import { useGetEnvironment } from '../../Utilities/useGetEnvironment';
|
|
||||||
import { ImageBuilderHeader } from '../sharedComponents/ImageBuilderHeader';
|
import { ImageBuilderHeader } from '../sharedComponents/ImageBuilderHeader';
|
||||||
|
|
||||||
type CustomWizardFooterPropType = {
|
type CustomWizardFooterPropType = {
|
||||||
|
|
@ -133,7 +132,6 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
const { isBeta } = useGetEnvironment();
|
|
||||||
|
|
||||||
const isUsersEnabled = useFlag('image-builder.users.enabled');
|
const isUsersEnabled = useFlag('image-builder.users.enabled');
|
||||||
const isTimezoneEnabled = useFlag('image-builder.timezone.enabled');
|
const isTimezoneEnabled = useFlag('image-builder.timezone.enabled');
|
||||||
|
|
@ -161,8 +159,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
||||||
|
|
||||||
// Feature flags
|
// Feature flags
|
||||||
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
|
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
|
||||||
const complianceEnabled =
|
const complianceEnabled = useFlag('image-builder.compliance.enabled');
|
||||||
useFlag('image-builder.compliance.enabled') && isBeta();
|
|
||||||
|
|
||||||
// IMPORTANT: Ensure the wizard starts with a fresh initial state
|
// IMPORTANT: Ensure the wizard starts with a fresh initial state
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue