Indicate the user if all the server's children nodes are hidden from the preferences setting. #6003
parent
5483f70d4b
commit
1f2f405057
|
@ -13,6 +13,8 @@ import pgAdmin from 'sources/pgadmin';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import { FileType } from 'react-aspen';
|
import { FileType } from 'react-aspen';
|
||||||
import { findInTree } from './tree';
|
import { findInTree } from './tree';
|
||||||
|
import Notify from '../../../static/js/helpers/Notifier';
|
||||||
|
import gettext from 'sources/gettext';
|
||||||
|
|
||||||
import { unix } from 'path-fx';
|
import { unix } from 'path-fx';
|
||||||
|
|
||||||
|
@ -148,7 +150,13 @@ export class ManageTreeNodes {
|
||||||
|
|
||||||
await fill(treeData);
|
await fill(treeData);
|
||||||
if (node.children.length > 0) res(node.children);
|
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();
|
loadData();
|
||||||
|
|
Loading…
Reference in New Issue