Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drievlad branch #725

Closed
wants to merge 2 commits into from
Closed
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: 2 additions & 0 deletions src/components/Menu/MenuContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const IngestFuncMap = {
ous: NewIngestion.buildOuJsonNew,
gpos: NewIngestion.buildGpoJsonNew,
containers: NewIngestion.buildContainerJsonNew,
IPAhosts: NewIngestion.buildIPAHostJsonNew,
IPAusers: NewIngestion.buildIPAUserJsonNew,
azure: NewIngestion.convertAzureData,
};

Expand Down
6 changes: 6 additions & 0 deletions src/components/SearchContainer/SearchRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ const SearchRow = ({ item, search }) => {
case 'Container':
icon.className = 'fa fa-box'
break
case 'IPAUser':
icon.className = 'fa fa-user';
break;
case 'IPAHost':
icon.className = 'fa fa-desktop';
break;
case 'AZUser':
icon.className = 'fa fa-user';
break;
Expand Down
29 changes: 29 additions & 0 deletions src/components/SearchContainer/TabContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import ComputerNodeData from './Tabs/ComputerNodeData';
import DomainNodeData from './Tabs/DomainNodeData';
import GpoNodeData from './Tabs/GPONodeData';
import OuNodeData from './Tabs/OUNodeData';
import IPAUserNodeData from './Tabs/IPAUserNodeData';
import IPAHostNodeData from './Tabs/IPAHostNodeData';
import AZGroupNodeData from './Tabs/AZGroupNodeData';
import AZUserNodeData from './Tabs/AZUserNodeData';
import AZContainerRegistryNodeData from './Tabs/AZContainerRegistryNodeData';
Expand Down Expand Up @@ -49,6 +51,8 @@ class TabContainer extends Component {
gpoVisible: false,
ouVisible: false,
containerVisible: false,
IPAuserVisible: false,
IPAhostVisible: false,
azGroupVisible: false,
azUserVisible: false,
azContainerRegistryVisible: false,
Expand Down Expand Up @@ -94,6 +98,10 @@ class TabContainer extends Component {
this._ouNodeClicked();
} else if (type === 'GPO') {
this._gpoNodeClicked();
} else if (type === 'IPAHost') {
this._computerNodeClicked();
} else if (type === 'IPAUser') {
this._computerNodeClicked();
} else if (type === 'AZGroup') {
this._azGroupNodeClicked();
} else if (type === 'AZUser') {
Expand Down Expand Up @@ -225,6 +233,23 @@ class TabContainer extends Component {
});
}


_IPAuserNodeClicked() {
this.clearVisible()
this.setState({
userVisible: true,
selected: 2
});
}

_IPAhostNodeClicked() {
this.clearVisible()
this.setState({
computerVisible: true,
selected: 2
});
}

_azGroupNodeClicked() {
this.clearVisible()
this.setState({
Expand Down Expand Up @@ -405,6 +430,8 @@ class TabContainer extends Component {
!this.state.domainVisible &&
!this.state.gpoVisible &&
!this.state.ouVisible &&
!this.state.IPAuserVisible &&
!this.state.IPAhostVisible &&
!this.state.azGroupVisible &&
!this.state.azUserVisible &&
!this.state.azContainerRegistryVisible &&
Expand Down Expand Up @@ -437,6 +464,8 @@ class TabContainer extends Component {
<GpoNodeData visible={this.state.gpoVisible} />
<OuNodeData visible={this.state.ouVisible} />
<ContainerNodeData visible={this.state.containerVisible} />
<IPAHostNodeData visible={this.state.IPAhostVisible} />
<IPAUserNodeData visible={this.state.IPAuserVisible} />
<AZGroupNodeData visible={this.state.azGroupVisible} />
<AZUserNodeData visible={this.state.azUserVisible} />
<AZContainerRegistryNodeData visible={this.state.azContainerRegistryVisible} />
Expand Down
Loading
Loading