Accomodated Review comments.
parent
50739987a4
commit
bedc8e389a
|
|
@ -46,4 +46,5 @@ Bug fixes
|
||||||
| `Issue #8982 <https://github.com/pgadmin-org/pgadmin4/issues/8982>`_ - Fixed an issue where adding breakpoints caused errors, and stepping out of a nested function removed breakpoints from the parent function.
|
| `Issue #8982 <https://github.com/pgadmin-org/pgadmin4/issues/8982>`_ - Fixed an issue where adding breakpoints caused errors, and stepping out of a nested function removed breakpoints from the parent function.
|
||||||
| `Issue #9007 <https://github.com/pgadmin-org/pgadmin4/issues/9007>`_ - Ensure the scratch pad in the Query Tool is not restored after it is closed.
|
| `Issue #9007 <https://github.com/pgadmin-org/pgadmin4/issues/9007>`_ - Ensure the scratch pad in the Query Tool is not restored after it is closed.
|
||||||
| `Issue #9008 <https://github.com/pgadmin-org/pgadmin4/issues/9008>`_ - Update the documentation for parameters that require file paths.
|
| `Issue #9008 <https://github.com/pgadmin-org/pgadmin4/issues/9008>`_ - Update the documentation for parameters that require file paths.
|
||||||
| `Issue #9047 <https://github.com/pgadmin-org/pgadmin4/issues/9047>`_ - Fixed an issue where downloading images on the ERD tool was not working in desktop mode.
|
| `Issue #9047 <https://github.com/pgadmin-org/pgadmin4/issues/9047>`_ - Fixed an issue where downloading images on the ERD tool was not working in desktop mode.
|
||||||
|
| `Issue #9067 <https://github.com/pgadmin-org/pgadmin4/issues/9067>`_ - Ensure that disabling "Save Application State" in Preferences prevents tool data from being saved and stops it from being restored on application restart.
|
||||||
|
|
@ -215,11 +215,11 @@ class AdHocConnectionSchema extends BaseUISchema {
|
||||||
disabled: (state) => state.sid,
|
disabled: (state) => state.sid,
|
||||||
},{
|
},{
|
||||||
id: 'did', label: gettext('Database'), deps: ['sid', 'connected'],
|
id: 'did', label: gettext('Database'), deps: ['sid', 'connected'],
|
||||||
controlProps: {creatable: true},
|
|
||||||
type: (state) => {
|
type: (state) => {
|
||||||
if (state?.sid) {
|
if (state?.sid) {
|
||||||
return {
|
return {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
|
controlProps: {creatable: true},
|
||||||
options: () => this.getOtherOptions(
|
options: () => this.getOtherOptions(
|
||||||
state.sid, 'get_new_connection_database'
|
state.sid, 'get_new_connection_database'
|
||||||
),
|
),
|
||||||
|
|
@ -238,11 +238,11 @@ class AdHocConnectionSchema extends BaseUISchema {
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id: 'user', label: gettext('User'), deps: ['sid', 'connected'],
|
id: 'user', label: gettext('User'), deps: ['sid', 'connected'],
|
||||||
controlProps: {creatable: true},
|
|
||||||
type: (state) => {
|
type: (state) => {
|
||||||
if (state?.sid) {
|
if (state?.sid) {
|
||||||
return {
|
return {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
|
controlProps: {creatable: true},
|
||||||
options: () => this.getOtherOptions(
|
options: () => this.getOtherOptions(
|
||||||
state.sid, 'get_new_connection_user'
|
state.sid, 'get_new_connection_user'
|
||||||
),
|
),
|
||||||
|
|
@ -266,9 +266,9 @@ class AdHocConnectionSchema extends BaseUISchema {
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
id: 'role', label: gettext('Role'), deps: ['sid', 'connected'],
|
id: 'role', label: gettext('Role'), deps: ['sid', 'connected'],
|
||||||
controlProps: {creatable: true},
|
|
||||||
type: (state)=>({
|
type: (state)=>({
|
||||||
type: 'select',
|
type: 'select',
|
||||||
|
controlProps: {creatable: true},
|
||||||
options: () => this.getOtherOptions(
|
options: () => this.getOtherOptions(
|
||||||
state.sid, 'get_new_connection_role'
|
state.sid, 'get_new_connection_role'
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -428,9 +428,9 @@ export default function Layout({groups, noContextGroups, getLayoutInstance, layo
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!saveAppState && saveAppStateRef.current){
|
if(!saveAppState && saveAppStateRef.current){
|
||||||
saveAppStateRef.current = saveAppState;
|
|
||||||
layoutDockerObj.saveLayout();
|
layoutDockerObj.saveLayout();
|
||||||
}
|
}
|
||||||
|
saveAppStateRef.current = saveAppState;
|
||||||
|
|
||||||
}, [prefStore]);
|
}, [prefStore]);
|
||||||
|
|
||||||
|
|
@ -479,8 +479,8 @@ export default function Layout({groups, noContextGroups, getLayoutInstance, layo
|
||||||
const saveTab = (tab) => {
|
const saveTab = (tab) => {
|
||||||
// 'tab' here is the full TabData object, potentially with 'title', 'content', etc.
|
// 'tab' here is the full TabData object, potentially with 'title', 'content', etc.
|
||||||
// We only want to save the 'id' and any custom properties needed by loadTab.
|
// We only want to save the 'id' and any custom properties needed by loadTab.
|
||||||
const saveAppState = prefStore?.getPreferencesForModule('misc')?.save_app_state;
|
const savedTab = { id: tab.id };
|
||||||
if (saveAppState && tab.metaData && !BROWSER_PANELS.DEBUGGER_TOOL.includes(tab.id.split('_')[0])) {
|
if (saveAppStateRef.current && tab.metaData && !BROWSER_PANELS.DEBUGGER_TOOL.includes(tab.id.split('_')[0])) {
|
||||||
// add custom properties that were part of the original TabBase
|
// add custom properties that were part of the original TabBase
|
||||||
const updatedMetaData = {
|
const updatedMetaData = {
|
||||||
...tab.metaData,
|
...tab.metaData,
|
||||||
|
|
@ -492,13 +492,9 @@ export default function Layout({groups, noContextGroups, getLayoutInstance, layo
|
||||||
},
|
},
|
||||||
restore: true,
|
restore: true,
|
||||||
};
|
};
|
||||||
return {
|
savedTab.metaData = updatedMetaData;
|
||||||
id: tab.id,
|
|
||||||
metaData: updatedMetaData
|
|
||||||
};
|
|
||||||
}else{
|
|
||||||
return {id: tab.id};
|
|
||||||
}
|
}
|
||||||
|
return savedTab;
|
||||||
};
|
};
|
||||||
|
|
||||||
const flatDefaultLayout = useMemo(()=>{
|
const flatDefaultLayout = useMemo(()=>{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue