Ensure the scratch pad in the Query Tool is not restored after it is closed. #9007
Update the documentation for parameters that require file paths. #9008pull/9013/head
parent
3b9359945e
commit
1f7fbb91f7
|
|
@ -194,4 +194,6 @@ The following example shows both a minimally defined and a fully defined server:
|
||||||
"PostConnectionSQL": "set timezone='America/New_York'"
|
"PostConnectionSQL": "set timezone='America/New_York'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.. note:: If you're running pgAdmin in Server Mode, the values for parameters that require file paths should be specified relative to the user's home directory which is /<DATA_DIR>/storage/<user_id>/. If DATA_DIR is not specified, then it will /var/libe/pgadmin/storage/<user_id>/
|
||||||
|
|
@ -82,7 +82,7 @@ define('pgadmin.browser.utils',
|
||||||
];
|
];
|
||||||
|
|
||||||
pgBrowser.utils = {
|
pgBrowser.utils = {
|
||||||
layout: {{ layout }},
|
layout: {{ layout|tojson }},
|
||||||
theme: '{{ theme }}',
|
theme: '{{ theme }}',
|
||||||
pg_help_path: '{{ pg_help_path }}',
|
pg_help_path: '{{ pg_help_path }}',
|
||||||
app_name: '{{ app_name }}',
|
app_name: '{{ app_name }}',
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ function Layouts({browser}) {
|
||||||
}}
|
}}
|
||||||
defaultLayout={defaultLayout}
|
defaultLayout={defaultLayout}
|
||||||
layoutId='Browser/Layout'
|
layoutId='Browser/Layout'
|
||||||
savedLayout={pgAdmin.Browser.utils.layout}
|
savedLayout={pgAdmin.Browser.utils.layout['Browser/Layout']}
|
||||||
groups={{
|
groups={{
|
||||||
'object-explorer': objectExplorerGroup,
|
'object-explorer': objectExplorerGroup,
|
||||||
'playground': getMorePanelGroup(defaultTabsData),
|
'playground': getMorePanelGroup(defaultTabsData),
|
||||||
|
|
@ -143,7 +143,7 @@ function Layouts({browser}) {
|
||||||
}}
|
}}
|
||||||
defaultLayout={item.layout}
|
defaultLayout={item.layout}
|
||||||
layoutId={`Workspace/Layout-${item.workspace}`}
|
layoutId={`Workspace/Layout-${item.workspace}`}
|
||||||
savedLayout={pgAdmin.Browser.utils.layout}
|
savedLayout={pgAdmin.Browser.utils.layout[`Workspace/Layout-${item.workspace}`]}
|
||||||
groups={{
|
groups={{
|
||||||
'playground': item?.tabsData ? getMorePanelGroup(item?.tabsData) : {...getDefaultGroup()},
|
'playground': item?.tabsData ? getMorePanelGroup(item?.tabsData) : {...getDefaultGroup()},
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -219,9 +219,9 @@ export class LayoutDocker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadLayout(savedLayout, layoutId) {
|
loadLayout(savedLayout) {
|
||||||
try {
|
try {
|
||||||
this.layoutObj.loadLayout(JSON.parse(savedLayout[layoutId]));
|
this.layoutObj.loadLayout(JSON.parse(savedLayout));
|
||||||
} catch {
|
} catch {
|
||||||
/* Fallback to default */
|
/* Fallback to default */
|
||||||
this.layoutObj.loadLayout(this.defaultLayout);
|
this.layoutObj.loadLayout(this.defaultLayout);
|
||||||
|
|
@ -505,7 +505,7 @@ export default function Layout({groups, noContextGroups, getLayoutInstance, layo
|
||||||
flattenLayout(props.defaultLayout.dockbox);
|
flattenLayout(props.defaultLayout.dockbox);
|
||||||
return flat;
|
return flat;
|
||||||
}, [props.defaultLayout]);
|
}, [props.defaultLayout]);
|
||||||
|
|
||||||
const loadTab = (tab)=>{
|
const loadTab = (tab)=>{
|
||||||
const tabData = flatDefaultLayout.find((t)=>t.id == tab.id);
|
const tabData = flatDefaultLayout.find((t)=>t.id == tab.id);
|
||||||
if(!tabData && tab.metaData) {
|
if(!tabData && tab.metaData) {
|
||||||
|
|
@ -529,7 +529,7 @@ export default function Layout({groups, noContextGroups, getLayoutInstance, layo
|
||||||
if(obj) {
|
if(obj) {
|
||||||
layoutDockerObj.layoutObj = obj;
|
layoutDockerObj.layoutObj = obj;
|
||||||
getLayoutInstance?.(layoutDockerObj);
|
getLayoutInstance?.(layoutDockerObj);
|
||||||
layoutDockerObj.loadLayout(savedLayout, layoutId);
|
layoutDockerObj.loadLayout(savedLayout);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
loadTab={loadTab}
|
loadTab={loadTab}
|
||||||
|
|
@ -565,7 +565,7 @@ Layout.propTypes = {
|
||||||
noContextGroups: PropTypes.array,
|
noContextGroups: PropTypes.array,
|
||||||
getLayoutInstance: PropTypes.func,
|
getLayoutInstance: PropTypes.func,
|
||||||
layoutId: PropTypes.string,
|
layoutId: PropTypes.string,
|
||||||
savedLayout: PropTypes.any,
|
savedLayout: PropTypes.string,
|
||||||
resetToTabPanel: PropTypes.string,
|
resetToTabPanel: PropTypes.string,
|
||||||
enableToolEvents: PropTypes.bool,
|
enableToolEvents: PropTypes.bool,
|
||||||
isLayoutVisible: PropTypes.bool
|
isLayoutVisible: PropTypes.bool
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue