File tree Expand file tree Collapse file tree 1 file changed +0
-51
lines changed
app/javascript/components/vm-snapshot-tree-select Expand file tree Collapse file tree 1 file changed +0
-51
lines changed Original file line number Diff line number Diff line change @@ -6,51 +6,6 @@ import TreeView, { flattenTree } from 'react-accessible-treeview';
6
6
import './styles.css' ;
7
7
import PropTypes from 'prop-types' ;
8
8
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
-
54
9
const allNodeData = [ ] ;
55
10
56
11
const convertData = ( node ) => {
@@ -115,12 +70,6 @@ const SnapshotTree = ({ nodes, setSnapshot }) => {
115
70
miqSparkleOff ( ) ;
116
71
} ) ;
117
72
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
-
124
73
e . stopPropagation ( ) ;
125
74
setSelectedNode ( e . target . id ) ;
126
75
} ;
You can’t perform that action at this time.
0 commit comments