WizardV2: filesystem mountpoint size validation

This commit is contained in:
Ondrej Ezr 2024-04-09 11:26:01 +02:00 committed by Klara Simickova
parent 561e82827e
commit 54d032e0f0
2 changed files with 9 additions and 4 deletions

View file

@ -32,6 +32,10 @@ export const isGcpEmailValid = (gcpShareWithAccount: string | undefined) => {
);
};
export const isMountpointMinSizeValid = (minSize: string) => {
return /^\d+$/.test(minSize) && parseInt(minSize) > 0;
};
export const isBlueprintNameValid = (blueprintName: string) =>
blueprintName.length >= 2 &&
blueprintName.length <= 100 &&