diff --git a/web/pgadmin/browser/static/js/toolbar.js b/web/pgadmin/browser/static/js/toolbar.js index fc915026e..af3ad7d13 100644 --- a/web/pgadmin/browser/static/js/toolbar.js +++ b/web/pgadmin/browser/static/js/toolbar.js @@ -116,7 +116,7 @@ export function initializeToolbar(panel, wcDocker) { else if ('name' in data && data.name === gettext('View Data')) pgAdmin.Tools.SQLEditor.showViewData({mnuid: 3}, pgAdmin.Browser.tree.selected()); else if ('name' in data && data.name === gettext('Filtered Rows')) - pgAdmin.Tools.SQLEditor.show_filtered_row({mnuid: 4}, pgAdmin.Browser.tree.selected()); + pgAdmin.Tools.SQLEditor.showFilteredRow({mnuid: 4}, pgAdmin.Browser.tree.selected()); else if ('name' in data && data.name === gettext('Search objects')) pgAdmin.SearchObjects.show_search_objects('', pgAdmin.Browser.tree.selected()); else if ('name' in data && data.name === gettext('PSQL Tool')){ diff --git a/web/pgadmin/static/js/Explain/Analysis.jsx b/web/pgadmin/static/js/Explain/Analysis.jsx index fa822b156..bf4553dd2 100644 --- a/web/pgadmin/static/js/Explain/Analysis.jsx +++ b/web/pgadmin/static/js/Explain/Analysis.jsx @@ -24,16 +24,19 @@ const useStyles = makeStyles((theme)=>({ borderBottom: '2px dashed '+theme.palette.primary.main, }, level2: { - backgroundColor: '#fff', - color: '#000', + backgroundColor: theme.otherVars.explain.sev2.bg, + color: theme.otherVars.explain.sev2.color, }, level3: { - backgroundColor: '#fff', - color: '#000', + backgroundColor: theme.otherVars.explain.sev3.bg, + color: theme.otherVars.explain.sev3.color, }, level4: { - backgroundColor: '#fff', - color: '#000', + backgroundColor: theme.otherVars.explain.sev4.bg, + color: theme.otherVars.explain.sev4.color, + }, + textRight: { + textAlign: 'right', }, })); @@ -43,15 +46,6 @@ function getRowClassname(data, collapseParent) { if(data['Plans']?.length > 0) { className.push(classes.collapsible); } - if(!_.isEmpty(data['exclusive_flag'])) { - className.push(classes['level'+data['exclusive_flag']]); - } - if(!_.isEmpty(data['inclusive_flag'])) { - className.push(classes['level'+data['inclusive_flag']]); - } - if(!_.isEmpty(data['rowsx_flag'])) { - className.push(classes['level'+data['rowsx_flag']]); - } if(collapseParent) { className.push(classes.collapseParent); } @@ -61,10 +55,10 @@ function getRowClassname(data, collapseParent) { function NodeText({displayText, extraInfo}) { return ( <> - {displayText} - {extraInfo?.length > 0 &&