CreateImageWizard: support edit mode on premise

The way the on premise wizard is initialized needed to be tweaked to
make it work for isEdit. Let's assume that the host distro and host
architecture are already correct in the blueprint.
This commit is contained in:
Sanne Raymaekers 2025-02-04 16:46:16 +01:00 committed by Klara Simickova
parent 0204bcced5
commit 52a43b0f2d
6 changed files with 36 additions and 5 deletions

View file

@ -15,8 +15,10 @@ import { useNavigate, useParams } from 'react-router-dom';
import { CreateSaveAndBuildBtn, CreateSaveButton } from './CreateDropdown';
import { EditSaveAndBuildBtn, EditSaveButton } from './EditDropdown';
import { useCreateBlueprintMutation } from '../../../../../store/backendApi';
import { useUpdateBlueprintMutation } from '../../../../../store/imageBuilderApi';
import {
useCreateBlueprintMutation,
useUpdateBlueprintMutation,
} from '../../../../../store/backendApi';
import { resolveRelPath } from '../../../../../Utilities/path';
import { mapRequestFromState } from '../../../utilities/requestMapper';
import { useIsBlueprintValid } from '../../../utilities/useValidation';