Wizard: only show compliance radio in preview
Let's expose compliance in preview while we're ironing out the creases.
This commit is contained in:
parent
0bebb87ec0
commit
692b6f1595
1 changed files with 4 additions and 1 deletions
|
|
@ -65,6 +65,7 @@ import {
|
|||
addImageType,
|
||||
} from '../../store/wizardSlice';
|
||||
import { resolveRelPath } from '../../Utilities/path';
|
||||
import { useGetEnvironment } from '../../Utilities/useGetEnvironment';
|
||||
import { ImageBuilderHeader } from '../sharedComponents/ImageBuilderHeader';
|
||||
|
||||
type CustomWizardFooterPropType = {
|
||||
|
|
@ -129,6 +130,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
|||
const navigate = useNavigate();
|
||||
const dispatch = useAppDispatch();
|
||||
const [searchParams] = useSearchParams();
|
||||
const { isBeta } = useGetEnvironment();
|
||||
|
||||
// Remove this and all fallthrough logic when snapshotting is enabled in Prod-stable
|
||||
// =========================TO REMOVE=======================
|
||||
|
|
@ -153,7 +155,8 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
|||
|
||||
// Feature flags
|
||||
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
|
||||
const complianceEnabled = useFlag('image-builder.compliance.enabled');
|
||||
const complianceEnabled =
|
||||
useFlag('image-builder.compliance.enabled') && isBeta();
|
||||
|
||||
// IMPORTANT: Ensure the wizard starts with a fresh initial state
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue