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';
|
||||
import { resolveRelPath } from '../../Utilities/path';
|
||||
import { useFlag } from '../../Utilities/useGetEnvironment';
|
||||
import { useGetEnvironment } from '../../Utilities/useGetEnvironment';
|
||||
import { ImageBuilderHeader } from '../sharedComponents/ImageBuilderHeader';
|
||||
|
||||
type CustomWizardFooterPropType = {
|
||||
|
|
@ -133,7 +132,6 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
|||
const navigate = useNavigate();
|
||||
const dispatch = useAppDispatch();
|
||||
const [searchParams] = useSearchParams();
|
||||
const { isBeta } = useGetEnvironment();
|
||||
|
||||
const isUsersEnabled = useFlag('image-builder.users.enabled');
|
||||
const isTimezoneEnabled = useFlag('image-builder.timezone.enabled');
|
||||
|
|
@ -161,8 +159,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
|||
|
||||
// Feature flags
|
||||
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
|
||||
const complianceEnabled =
|
||||
useFlag('image-builder.compliance.enabled') && isBeta();
|
||||
const complianceEnabled = useFlag('image-builder.compliance.enabled');
|
||||
|
||||
// IMPORTANT: Ensure the wizard starts with a fresh initial state
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue