mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Disable PSQL Workspace in Server mode.
2) Fixed an issue where empty binary path throwing an error instead of proper error message.
This commit is contained in:
@@ -203,7 +203,7 @@ class ServerType():
|
|||||||
bin_path['binaryPath'].strip() != '':
|
bin_path['binaryPath'].strip() != '':
|
||||||
return bin_path['binaryPath']
|
return bin_path['binaryPath']
|
||||||
|
|
||||||
if bin_path['isDefault']:
|
if bin_path['isDefault'] and bin_path['binaryPath'] != '':
|
||||||
default_path = bin_path['binaryPath']
|
default_path = bin_path['binaryPath']
|
||||||
|
|
||||||
return default_path
|
return default_path
|
||||||
|
@@ -465,7 +465,7 @@ export default function AdHocConnection({mode}) {
|
|||||||
});
|
});
|
||||||
if (mode == WORKSPACES.QUERY_TOOL) {
|
if (mode == WORKSPACES.QUERY_TOOL) {
|
||||||
openQueryTool(respData, formData);
|
openQueryTool(respData, formData);
|
||||||
} else if (mode == WORKSPACES.PSQL_TOOL) {
|
} else if (mode == WORKSPACES.PSQL_TOOL && pgAdmin['enable_psql']) {
|
||||||
openPSQLTool(respData, formData);
|
openPSQLTool(respData, formData);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@@ -125,7 +125,7 @@ export default function WorkspaceToolbar() {
|
|||||||
<Root>
|
<Root>
|
||||||
<WorkspaceButton icon={<AccountTreeRoundedIcon />} value={WORKSPACES.DEFAULT} title={gettext('Default Workspace')} tooltipPlacement="right" />
|
<WorkspaceButton icon={<AccountTreeRoundedIcon />} value={WORKSPACES.DEFAULT} title={gettext('Default Workspace')} tooltipPlacement="right" />
|
||||||
<WorkspaceButton icon={<QueryToolIcon />} value={WORKSPACES.QUERY_TOOL} title={gettext('Query Tool Workspace')} tooltipPlacement="right" />
|
<WorkspaceButton icon={<QueryToolIcon />} value={WORKSPACES.QUERY_TOOL} title={gettext('Query Tool Workspace')} tooltipPlacement="right" />
|
||||||
<WorkspaceButton icon={<TerminalRoundedIcon style={{height: '1.4rem'}}/>} value={WORKSPACES.PSQL_TOOL} title={gettext('PSQL Tool Workspace')} tooltipPlacement="right" />
|
{pgAdmin['enable_psql'] && <WorkspaceButton icon={<TerminalRoundedIcon style={{height: '1.4rem'}}/>} value={WORKSPACES.PSQL_TOOL} title={gettext('PSQL Tool Workspace')} tooltipPlacement="right" />}
|
||||||
<WorkspaceButton icon={<SchemaDiffIcon />} value={WORKSPACES.SCHEMA_DIFF_TOOL} title={gettext('Schema Diff Workspace')} tooltipPlacement="right" />
|
<WorkspaceButton icon={<SchemaDiffIcon />} value={WORKSPACES.SCHEMA_DIFF_TOOL} title={gettext('Schema Diff Workspace')} tooltipPlacement="right" />
|
||||||
<Box marginTop="auto">
|
<Box marginTop="auto">
|
||||||
<WorkspaceButton icon={<SettingsIcon />} menuItem={menus['settings']} title={gettext('Preferences')} tooltipPlacement="right" />
|
<WorkspaceButton icon={<SettingsIcon />} menuItem={menus['settings']} title={gettext('Preferences')} tooltipPlacement="right" />
|
||||||
|
Reference in New Issue
Block a user