Wizard: fix blueprint unique name validation in Edit mode

This commit is contained in:
Ondrej Ezr 2024-07-16 00:21:06 +02:00 committed by Klara Simickova
parent e003682e23
commit e0ec56c94d
4 changed files with 18 additions and 9 deletions

View file

@ -45,6 +45,7 @@ export type wizardState = {
serverUrl: string;
baseUrl: string;
};
blueprintId?: string;
wizardMode: WizardModeOptions;
architecture: ImageRequest['architecture'];
distribution: Distributions;
@ -161,6 +162,10 @@ export const selectWizardMode = (state: RootState) => {
return state.wizard.wizardMode;
};
export const selectBlueprintId = (state: RootState) => {
return state.wizard.blueprintId;
};
export const selectBaseUrl = (state: RootState) => {
return state.wizard.env.baseUrl;
};