Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/javascript/components/tree-view/field.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import Tree, { ActionTypes } from '@manageiq/react-ui-components/dist/wooden-tree';
import {Tree, ActionTypes } from 'react-wooden-tree';
import {
ControlLabel, FieldLevelHelp, FormGroup, HelpBlock,
} from 'patternfly-react';
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/tree-view/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Tree from '@manageiq/react-ui-components/dist/wooden-tree';
import { Tree } from 'react-wooden-tree';

/**
* Helper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Tree, { Node } from '@manageiq/react-ui-components/dist/wooden-tree';
import { Tree, Node } from 'react-wooden-tree';

import { http } from '../../http_api';
import { combineReducers } from '../../helpers/redux';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Tree from '@manageiq/react-ui-components/dist/wooden-tree';
import { Tree } from 'react-wooden-tree';
import { ACTIONS } from './index';
import { nodeCheckedWithDirty } from './helpers';

Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/tree-view/reducers/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Tree from '@manageiq/react-ui-components/dist/wooden-tree';
import { Tree } from 'react-wooden-tree';

export const nodeCheckedWithDirty = (propNode, value) => {
let node = { ...propNode };
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/tree-view/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Tree, { ActionTypes } from '@manageiq/react-ui-components/dist/wooden-tree';
import { Tree, ActionTypes } from 'react-wooden-tree';
import {
checkAll,
select,
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/tree-view/reducers/others.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Tree from '@manageiq/react-ui-components/dist/wooden-tree';
import { Tree } from 'react-wooden-tree';
import { nodeCheckedWithDirty } from './helpers';

export const nodeFromKey = (state, key) => Tree.nodeSelector(state, Tree.nodeSearch(state, null, 'key', key)[0]);
Expand Down
2 changes: 1 addition & 1 deletion app/stylesheet/application-webpack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
@import '~@pf3/timeline/style.css';
@import '~@manageiq/react-ui-components/dist/quadicon.css';
@import '~@manageiq/react-ui-components/dist/textual_summary.css';
@import '~@manageiq/react-ui-components/dist/wooden-tree.css';
@import '~@manageiq/ui-components/dist/css/ui-components.css';

@import './carbon.scss';
@import './menu.scss';
@import './navbar.scss';
@import './notifications.scss';
@import './tree.scss';
14 changes: 14 additions & 0 deletions app/stylesheet/tree.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.react-tree-view {
ul {
padding-left: 0;
}

.dirty {
color: #39A5DC;
}

.selected {
background-color: #349ad3;
color: #FFFFFF;
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"react-router": "~5.1.2",
"react-router-dom": "~5.1.2",
"react-select": "~2.4.4",
"react-wooden-tree": "^2.2.0",
"redux": "^4.0.0",
"redux-mock-store": "^1.5.3",
"redux-promise-middleware": "^5.1.1",
Expand Down