Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#4351] [improvement] UI: Switch catalog properties from immutable to mutable (#4355)

Qian Xia1226fb10fae8
diff --git a/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js b/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js
index fadc29fe08..b0eb05c3ff 100644
--- a/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js
+++ b/web/src/app/metalakes/metalake/rightContent/CreateCatalogDialog.js
@@ -376,7 +376,7 @@ const CreateCatalogDialog = props => {
propsItems = propsItems.map((it, idx) => {
let propItem = {
...it,
- disabled: true
+ disabled: it.key === 'catalog-backend' && type === 'update'
}
const findProp = Object.keys(properties).find(i => i === it.key)
@@ -394,8 +394,7 @@ const CreateCatalogDialog = props => {
if (findPropIndex === -1) {
let propItem = {
key: item,
- value: properties[item],
- disabled: data.type === 'fileset' && item === 'location' && type === 'update'
+ value: properties[item]
}
propsItems.push(propItem)
}