Indicate the user if all the server's children nodes are hidden from the preferences setting. #6003

This commit is contained in:
Khushboo Vashi 2023-05-09 15:14:14 +05:30 committed by GitHub
parent 5483f70d4b
commit 1f2f405057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,8 @@ import pgAdmin from 'sources/pgadmin';
import _ from 'lodash';
import { FileType } from 'react-aspen';
import { findInTree } from './tree';
import Notify from '../../../static/js/helpers/Notifier';
import gettext from 'sources/gettext';
import { unix } from 'path-fx';
@ -148,7 +150,13 @@ export class ManageTreeNodes {
await fill(treeData);
if (node.children.length > 0) res(node.children);
else res(null);
else {
res(null);
if (node.data && node.data._type == 'server' && node.data.connected) {
Notify.info(gettext('Server children are not available.'
+' Please check these nodes are not hidden through the preferences setting `Browser > Nodes`.'));
}
}
}
loadData();