diff --git a/web/pgadmin/static/js/UtilityView.jsx b/web/pgadmin/static/js/UtilityView.jsx index 6ea221ffc..e2e0a3d5e 100644 --- a/web/pgadmin/static/js/UtilityView.jsx +++ b/web/pgadmin/static/js/UtilityView.jsx @@ -69,7 +69,6 @@ function UtilityViewContent({panelId, schema, treeNodeInfo, actionType, formType const pgAdmin = usePgAdmin(); const serverInfo = treeNodeInfo && ('server' in treeNodeInfo) && pgAdmin.Browser.serverInfo && pgAdmin.Browser.serverInfo[treeNodeInfo.server._id]; - const inCatalog = treeNodeInfo && ('catalog' in treeNodeInfo); const api = getApiInstance(); const url = ()=>{ return urlBase; @@ -144,7 +143,7 @@ function UtilityViewContent({panelId, schema, treeNodeInfo, actionType, formType type: serverInfo.server_type, version: serverInfo.version, }: undefined, - inCatalog: inCatalog, + inCatalog: false, }; let initData = ()=>new Promise((resolve, reject)=>{ diff --git a/web/pgadmin/static/js/helpers/ObjectExplorerToolbar.jsx b/web/pgadmin/static/js/helpers/ObjectExplorerToolbar.jsx index b6b0feabf..91c0ddcfe 100644 --- a/web/pgadmin/static/js/helpers/ObjectExplorerToolbar.jsx +++ b/web/pgadmin/static/js/helpers/ObjectExplorerToolbar.jsx @@ -23,8 +23,8 @@ ToolbarButton.propTypes = { export default function ObjectExplorerToolbar() { const [menus, setMenus] = useState({ 'query_tool': undefined, - 'view_all_rows_context_table': undefined, - 'view_filtered_rows_context_table': undefined, + 'view_all_rows_context': undefined, + 'view_filtered_rows_context': undefined, 'search_objects': undefined, 'psql': undefined, }); @@ -42,8 +42,8 @@ export default function ObjectExplorerToolbar() { setMenus({ 'query_tool': toolsMenus?.find((m)=>(m.name=='query_tool')), - 'view_all_rows_context_table': viewMenus?.find((m)=>(m.name=='view_all_rows_context_table')), - 'view_filtered_rows_context_table': viewMenus?.find((m)=>(m.name=='view_filtered_rows_context_table')), + 'view_all_rows_context': viewMenus?.find((m)=>(m.name=='view_all_rows_context_' + m.node)), + 'view_filtered_rows_context': viewMenus?.find((m)=>(m.name=='view_filtered_rows_context_' + m.node)), 'search_objects': toolsMenus?.find((m)=>(m.name=='search_objects')), 'psql': toolsMenus?.find((m)=>(m.name=='psql')) }); @@ -61,8 +61,8 @@ export default function ObjectExplorerToolbar() { } menuItem={menus['query_tool']} /> - } menuItem={menus['view_all_rows_context_table']} /> - } menuItem={menus['view_filtered_rows_context_table']} /> + } menuItem={menus['view_all_rows_context']} /> + } menuItem={menus['view_filtered_rows_context']} /> } menuItem={menus['search_objects']} /> {!_.isUndefined(menus['psql']) && } menuItem={menus['psql']} />}