Fixes some issues and improves the PgTable component.

This commit is contained in:
Aditya Toshniwal
2022-04-05 12:10:51 +05:30
committed by Akshay Joshi
parent 56a4263a5c
commit 953a9d7fd1
7 changed files with 67 additions and 52 deletions

View File

@@ -26,6 +26,7 @@ import WelcomeDashboard from './WelcomeDashboard';
import ActiveQuery from './ActiveQuery.ui';
import _ from 'lodash';
import CachedIcon from '@mui/icons-material/Cached';
import EmptyPanelMessage from '../../../static/js/components/EmptyPanelMessage';
function parseData(data) {
var res = [];
@@ -191,8 +192,8 @@ export default function Dashboard({
sortble: true,
resizable: true,
disableGlobalFilter: false,
minWidth: 16,
maxWidth: 30,
width: 35,
minWidth: 0,
id: 'btn-terminate',
// eslint-disable-next-line react/display-name
Cell: ({ row }) => {
@@ -264,8 +265,8 @@ export default function Dashboard({
sortble: true,
resizable: true,
disableGlobalFilter: false,
minWidth: 16,
maxWidth: 30,
width: 35,
minWidth: 0,
id: 'btn-cancel',
Cell: ({ row }) => {
var cancel_query_url =
@@ -332,8 +333,8 @@ export default function Dashboard({
sortble: true,
resizable: true,
disableGlobalFilter: false,
minWidth: 16,
maxWidth: 30,
width: 35,
minWidth: 0,
id: 'btn-edit',
Cell: ({ row }) => {
let canEditRow = true;
@@ -844,10 +845,7 @@ export default function Dashboard({
) : sid && !props.serverConnected ? (
<Box className={classes.dashboardPanel}>
<div className={classes.emptyPanel}>
<div className={classes.panelIcon}>
<i className="fa fa-exclamation-circle"></i>
<span className={classes.panelMessage}>{gettext(msg)}</span>
</div>
<EmptyPanelMessage text={gettext(msg)}/>
</div>
</Box>
) : (