@@ -799,22 +1663,6 @@ const AddTenant = ({
{tenantName}
- {customACCK && (
-
-
-
- Access Key
-
- {accessKey}
-
-
-
- Secret Key
-
- {secretKey}
-
-
- )}
{customDockerhub && (
@@ -825,15 +1673,6 @@ const AddTenant = ({
)}
- {serviceName !== "" && (
-
-
- Service Name
-
- {serviceName}
-
- )}
-
{namespace !== "" && (
@@ -847,37 +1686,17 @@ const AddTenant = ({
Storage Class
- {volumeConfiguration.storage_class}
+ {selectedStorageClass}
- {mountPath !== "" && (
-
-
- Mount Path
-
- {mountPath}
-
- )}
-
-
- Volumes per Server
-
- {volumesPerServer}
-
Volume Size
- {volumeConfiguration.size} {sizeFactor}
+ {volumeSize} {sizeFactor}
-
-
- Total Zones
-
- {zones.length}
-
{advancedMode && (
@@ -886,14 +1705,6 @@ const AddTenant = ({
{enableTLS ? "Enabled" : "Disabled"}
-
-
- Enable Console
-
-
- {enableConsole ? "Enabled" : "Disabled"}
-
-
)}
diff --git a/portal-ui/src/utils/validationFunctions.ts b/portal-ui/src/utils/validationFunctions.ts
index d8f140114..0d1ddcaf2 100644
--- a/portal-ui/src/utils/validationFunctions.ts
+++ b/portal-ui/src/utils/validationFunctions.ts
@@ -19,6 +19,8 @@ export interface IValidation {
required: boolean;
pattern?: RegExp;
customPatternMessage?: string;
+ customValidation?: boolean;
+ customValidationMessage?: string;
value: string;
}
@@ -31,12 +33,18 @@ export const commonFormValidation = (fieldsValidate: IValidation[]) => {
return;
}
+ if (field.customValidation && field.customValidationMessage) {
+ returnErrors[field.fieldKey] = field.customValidationMessage;
+ return;
+ }
+
if (field.pattern && field.customPatternMessage) {
const rgx = new RegExp(field.pattern, "g");
if (!field.value.match(rgx)) {
returnErrors[field.fieldKey] = field.customPatternMessage;
}
+ return;
}
});