World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#1114] improve(UI): Add `type` and `provider` properties in catalog details (#1331)
CHEYNE544316866bc6
diff --git a/web/app/metalakes/DetailsView.js b/web/app/metalakes/DetailsView.jsindex 1fcaaf96e9..73a19ab2f0 100644--- a/web/app/metalakes/DetailsView.js+++ b/web/app/metalakes/DetailsView.js@@ -16,7 +16,7 @@ import TableContainer from '@mui/material/TableContainer'import { formatToDateTime } from '@/lib/utils/date'const DetailsView = props => {- const { store, data = {} } = props+ const { store, data = {}, page } = propsconst activatedItem = store.activatedDetails@@ -32,6 +32,22 @@ const DetailsView = props => {return (<Box sx={{ p: 4 }}><Grid container spacing={6}>+ {page && page === 'catalogs' ? (+ <>+ <Grid item xs={12} md={6} sx={{ mb: [0, 5] }}>+ <Typography variant='body2' sx={{ mb: 2 }}>+ Type+ </Typography>+ <Typography sx={{ fontWeight: 500 }}>{activatedItem?.type || ''}</Typography>+ </Grid>+ <Grid item xs={12} md={6} sx={{ mb: [0, 5] }}>+ <Typography variant='body2' sx={{ mb: 2 }}>+ Provider+ </Typography>+ <Typography sx={{ fontWeight: 500 }}>{activatedItem?.provider || ''}</Typography>+ </Grid>+ </>+ ) : null}<Grid item xs={12} sx={{ mb: [0, 5] }}><Typography variant='body2' sx={{ mb: 2 }}>Commentdiff --git a/web/app/metalakes/TabsContent.js b/web/app/metalakes/TabsContent.jsindex dc05766923..82730db007 100644--- a/web/app/metalakes/TabsContent.js+++ b/web/app/metalakes/TabsContent.js@@ -70,7 +70,7 @@ const TabsContent = props => {<TableView page={page} /></CustomTabPanel><CustomTabPanel value='details'>- <DetailsView store={store} />+ <DetailsView store={store} page={page} /></CustomTabPanel></TabContext>)