World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#1538] fix(web): fix table action button click event (#2405)
CHEYNE1defc87fe1af
diff --git a/web/app/ui/MetalakeList.js b/web/app/ui/MetalakeList.jsindex 3db054b1ce..3c3adb7770 100644--- a/web/app/ui/MetalakeList.js+++ b/web/app/ui/MetalakeList.js@@ -9,6 +9,11 @@ import Link from 'next/link'import { Box, Grid, Card, Typography, Portal, Tooltip } from '@mui/material'import { DataGrid, GridActionsCellItem, GridToolbar } from '@mui/x-data-grid'+import {+ VisibilityOutlined as ViewIcon,+ EditOutlined as EditIcon,+ DeleteOutlined as DeleteIcon+} from '@mui/icons-material'import Icon from '@/components/Icon'@@ -182,7 +187,7 @@ const MetalakeList = () => {key='details'label='Details'title='Details'- icon={<Icon icon='bx:show-alt' />}+ icon={<ViewIcon viewBox='0 0 24 22' />}onClick={handleShowDetails(row)}sx={{'& svg': {@@ -194,7 +199,7 @@ const MetalakeList = () => {key='edit'label='Edit'title='Edit'- icon={<Icon icon='mdi:square-edit-outline' />}+ icon={<EditIcon />}onClick={handleShowEditDialog(row)}sx={{'& svg': {@@ -204,7 +209,7 @@ const MetalakeList = () => {/>,<GridActionsCellItemkey='delete'- icon={<Icon icon='mdi:delete-outline' />}+ icon={<DeleteIcon />}label='Delete'title='Delete'onClick={handleDeleteMetalake(row.name)}diff --git a/web/app/ui/metalakes/TableView.js b/web/app/ui/metalakes/TableView.jsindex 91cfe7d8a0..35040f546c 100644--- a/web/app/ui/metalakes/TableView.js+++ b/web/app/ui/metalakes/TableView.js@@ -9,6 +9,12 @@ import Link from 'next/link'import { Box, Typography, IconButton } from '@mui/material'import { DataGrid } from '@mui/x-data-grid'+import {+ VisibilityOutlined as ViewIcon,+ EditOutlined as EditIcon,+ DeleteOutlined as DeleteIcon+} from '@mui/icons-material'+import Icon from '@/components/Icon'import ColumnTypeChip from '@/components/ColumnTypeChip'@@ -144,7 +150,7 @@ const TableView = props => {sx={{ color: theme => theme.palette.text.secondary }}onClick={() => handleShowDetails({ row, type: 'catalog' })}>- <Icon icon='bx:show-alt' />+ <ViewIcon viewBox='0 0 24 22' /></IconButton><IconButton@@ -153,7 +159,7 @@ const TableView = props => {sx={{ color: theme => theme.palette.text.secondary }}onClick={() => handleShowEditDialog({ row, type: 'catalog' })}>- <Icon icon='mdi:square-edit-outline' />+ <EditIcon /></IconButton><IconButton@@ -162,7 +168,7 @@ const TableView = props => {sx={{ color: theme => theme.palette.error.light }}onClick={() => handleDelete({ name: row.name, type: 'catalog' })}>- <Icon icon='mdi:delete-outline' />+ <DeleteIcon /></IconButton></>)diff --git a/web/package.json b/web/package.jsonindex e132388f30..923e891bd5 100644--- a/web/package.json+++ b/web/package.json@@ -20,6 +20,7 @@"@emotion/react": "^11.11.1","@emotion/styled": "^11.11.0","@hookform/resolvers": "^3.3.2",+ "@mui/icons-material": "^5.15.11","@mui/lab": "^5.0.0-alpha.153","@mui/material": "^5.14.18","@mui/x-data-grid": "^6.18.2",diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex 768a539b6c..fee1674fc8 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -17,6 +17,9 @@ dependencies:'@hookform/resolvers':specifier: ^3.3.2version: 3.3.4([email protected])+ '@mui/icons-material':+ specifier: ^5.15.11'@mui/lab':specifier: ^5.0.0-alpha.153version: 5.0.0-alpha.159(@emotion/[email protected])(@emotion/[email protected])(@mui/[email protected])(@types/[email protected])([email protected])([email protected])@@ -236,6 +239,13 @@ packages:dependencies:regenerator-runtime: 0.14.1+ /@babel/[email protected]:+ resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==}+ engines: {node: '>=6.9.0'}+ dependencies:+ regenerator-runtime: 0.14.1+ dev: false+/@babel/[email protected]:resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==}engines: {node: '>=6.9.0'}@@ -548,6 +558,23 @@ packages:resolution: {integrity: sha512-sWeihiVyxdJjpLkp8SHkTy9kt2M/o11M60G1MzwljGL2BXdM3Ktzqv5QaQHdi00y7Y1ulvtI3GOSxP2xU8mQJw==}dev: false+ resolution: {integrity: sha512-R5ZoQqnKpd+5Ew7mBygTFLxgYsQHPhgR3TDXSgIHYIjGzYuyPLmGLSdcPUoMdi6kxiYqHlpPj4NJxlbaFD0UHA==}+ engines: {node: '>=12.0.0'}+ peerDependencies:+ '@mui/material': ^5.0.0+ '@types/react': ^17.0.0 || ^18.0.0+ react: ^17.0.0 || ^18.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@babel/runtime': 7.24.0+ '@mui/material': 5.15.3(@emotion/[email protected])(@emotion/[email protected])(@types/[email protected])([email protected])([email protected])+ '@types/react': 18.2.47+ react: 18.2.0+ dev: false+/@mui/[email protected](@emotion/[email protected])(@emotion/[email protected])(@mui/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-42Y8nf2/mDgYSLOw6PhOfHNV6P7tPcQkQEL0DTbY7a+gc+hXDsyVEzBMYST1MrV64EHTH68msfQm+k3CvLON/g==}engines: {node: '>=12.0.0'}