World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#4180] fix(ui): show the required key msg when submit validate (#4388)
Qian Xia2a23085a82b2
diff --git a/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js b/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.jsindex b0eb05c3ff..6c37eefe1f 100644--- a/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js+++ b/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js@@ -562,7 +562,7 @@ const CreateCatalogDialog = props => {value={item.key}disabled={item.required || item.disabled}onChange={event => handleFormChange({ index, event })}- error={item.hasDuplicateKey}+ error={item.hasDuplicateKey || item.invalid || !item.key.trim()}data-refer={`props-key-${index}`}/></Box>@@ -621,12 +621,15 @@ const CreateCatalogDialog = props => {{item.hasDuplicateKey && (<FormHelperText className={'twc-text-error-main'}>Key already exists</FormHelperText>)}- {item.invalid && (+ {item.key && item.invalid && (<FormHelperText className={'twc-text-error-main'}>Invalid key, matches strings starting with a letter/underscore, followed by alphanumericcharacters, underscores, hyphens, or dots.</FormHelperText>)}+ {!item.key.trim() && (+ <FormHelperText className={'twc-text-error-main'}>Key is required field</FormHelperText>+ )}</FormControl></Grid></Fragment>