WizardV2: filesystem mountpoint size validation
This commit is contained in:
parent
561e82827e
commit
54d032e0f0
2 changed files with 9 additions and 4 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue