mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
- Move pgadmin4-treeview to pgAdmin main repo.
- Use react based context menu for browser tree. #5615. - Fix feature tests failure.
This commit is contained in:
@@ -11,10 +11,10 @@ import gettext from 'sources/gettext';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Directory} from 'react-aspen';
|
||||
import { FileTreeX, TreeModelX } from 'pgadmin4-tree';
|
||||
import { Tree } from '../../../../static/js/tree/tree';
|
||||
import { ManagePreferenceTreeNodes } from '../../../../static/js/tree/preference_nodes';
|
||||
import pgAdmin from 'sources/pgadmin';
|
||||
import { FileTreeX, TreeModelX } from '../../../../static/js/components/PgTree';
|
||||
|
||||
|
||||
export default function PreferencesTree({ pgBrowser, data }) {
|
||||
@@ -36,7 +36,7 @@ export default function PreferencesTree({ pgBrowser, data }) {
|
||||
pathStyle: 'unix',
|
||||
getItems: (path) => {
|
||||
return ptree.readNode(path);
|
||||
|
||||
|
||||
},
|
||||
sortComparator: (a, b) => {
|
||||
// No nee to sort Query tool options.
|
||||
@@ -63,7 +63,7 @@ export default function PreferencesTree({ pgBrowser, data }) {
|
||||
pTreeModelX.current.root._children.forEach((_d)=> {
|
||||
_d.root.expandDirectory(_d);
|
||||
});
|
||||
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
@@ -82,4 +82,4 @@ PreferencesTree.propTypes = {
|
||||
pgBrowser: PropTypes.any,
|
||||
data: PropTypes.array,
|
||||
ptree: PropTypes.any,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user