mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
Indicate the user if all the server's children nodes are hidden from the preferences setting. #6003
This commit is contained in:
parent
5483f70d4b
commit
1f2f405057
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user