V2Wizard: add Details step to wizrd2
this commit add Details step to v2Wizard
This commit is contained in:
parent
e2591bf001
commit
f081ca78b0
6 changed files with 232 additions and 50 deletions
|
|
@ -13,3 +13,17 @@ export const isGcpEmailValid = (gcpShareWithAccount: string | undefined) => {
|
|||
gcpShareWithAccount.length <= 253
|
||||
);
|
||||
};
|
||||
|
||||
export const isBlueprintNameValid = (blueprintName: string) => {
|
||||
if (blueprintName === '') {
|
||||
return true;
|
||||
}
|
||||
return (
|
||||
/^[a-z][a-z0-9-]+[a-z0-9]$/.test(blueprintName) &&
|
||||
blueprintName.length <= 63
|
||||
);
|
||||
};
|
||||
|
||||
export const isBlueprintDescriptionValid = (blueprintDescription: string) => {
|
||||
return blueprintDescription.length <= 250;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue