- 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:
Aditya Toshniwal
2023-01-02 10:51:13 +05:30
committed by GitHub
parent 64af035ce9
commit 5c34c10d4e
23 changed files with 1588 additions and 406 deletions

View File

@@ -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,
};
};