Fix an issue where editing a database object de-selects it on the browser tree. #6136

pull/6344/head
Anil Sahoo 2023-06-02 10:59:47 +05:30 committed by GitHub
parent 9b85e0a4cd
commit b5af4ead0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -210,11 +210,6 @@ define('pgadmin.node.database', [
}
return false;
},
updated: (_i, _opts)=>{
pgBrowser.tree.refresh(_i._parent).then(() =>{
if (_opts && _opts.success) _opts.success();
});
},
/* Disconnect the database */
disconnect_database: function(args) {
let input = args || {},

View File

@ -544,7 +544,7 @@ export default function PreferencesComponent({ ...props }) {
data: save_data,
}).then(() => {
let requiresTreeRefresh = save_data.some((s)=>{
return s.name=='show_system_objects'||s.name=='show_empty_coll_nodes'||s.name.startsWith('show_node_')||s.name=='hide_shared_server';
return s.name=='show_system_objects'||s.name=='show_empty_coll_nodes'||s.name.startsWith('show_node_')||s.name=='hide_shared_server'||s.name=='show_user_defined_templates';
});
let requires_refresh = false;
/* Find the modules changed */