Skip to content

Commit ca6fa83

Browse files
Update
1 parent c0d0821 commit ca6fa83

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

app/javascript/components/vm-snapshot-tree-select/snapshot-tree.jsx

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,6 @@ import TreeView, { flattenTree } from 'react-accessible-treeview';
66
import './styles.css';
77
import PropTypes from 'prop-types';
88

9-
// const atree = [
10-
// {
11-
// key: 'a',
12-
// text: 'ag-cp4ai-ia-4-6-0',
13-
// nodes: [
14-
// {
15-
// key: 'sn-1553',
16-
// text: 'snapshot1',
17-
// nodes: [
18-
// {
19-
// key: 'sn-1553_sn-1554',
20-
// text: 'snapshot2 (Active)',
21-
// nodes: [
22-
// {
23-
// key: 'sn-1553_sn-1554_sn-1555',
24-
// text: 'snapshot3',
25-
// },
26-
// {
27-
// key: 'sn-1553_sn-1554_sn-1550',
28-
// text: 'snapshot0',
29-
// },
30-
// ],
31-
// },
32-
// ],
33-
// },
34-
// {
35-
// key: 'sn-1556',
36-
// text: 'snapshot4',
37-
// nodes: [
38-
// {
39-
// key: 'sn-1556_sn-1557',
40-
// text: 'snapshot5',
41-
// nodes: [
42-
// {
43-
// key: 'sn-1556_sn-1557_sn-1558',
44-
// text: 'snapshot6',
45-
// },
46-
// ],
47-
// },
48-
// ],
49-
// },
50-
// ],
51-
// },
52-
// ];
53-
549
const allNodeData = [];
5510

5611
const convertData = (node) => {
@@ -115,12 +70,6 @@ const SnapshotTree = ({ nodes, setSnapshot }) => {
11570
miqSparkleOff();
11671
});
11772

118-
// Remove 'selected' class from all elements
119-
// const selectedElements = document.querySelectorAll('.selected-snapshot');
120-
// selectedElements.forEach((el) => {
121-
// el.classList.remove('selected-snapshot');
122-
// });
123-
12473
e.stopPropagation();
12574
setSelectedNode(e.target.id);
12675
};

0 commit comments

Comments
 (0)