mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed issues in the Preferences:
1) Show a single note in the binary path. 2) Resolved issue in the keyboard shortcut. refs #7149
This commit is contained in:
committed by
Akshay Joshi
parent
02e799c917
commit
931a399890
@@ -233,6 +233,7 @@ export default function PreferencesComponent({ ...props }) {
|
||||
});
|
||||
}, []);
|
||||
function setPreferences(node, subNode, nodeData, preferencesValues, preferencesData) {
|
||||
let addBinaryPathNote = false;
|
||||
subNode.preferences.forEach((element) => {
|
||||
let note = '';
|
||||
let type = getControlMappedForType(element.type);
|
||||
@@ -247,7 +248,10 @@ export default function PreferencesComponent({ ...props }) {
|
||||
element.editable = false;
|
||||
element.disabled = true;
|
||||
preferencesValues[element.id] = JSON.parse(element.value);
|
||||
addNote(node, subNode, nodeData, preferencesData, note);
|
||||
if(addBinaryPathNote) {
|
||||
addNote(node, subNode, nodeData, preferencesData, note);
|
||||
}
|
||||
addBinaryPathNote = true;
|
||||
}
|
||||
else if (type == 'select') {
|
||||
setControlProps(element);
|
||||
|
Reference in New Issue
Block a user