Skip to content

Commit

Permalink
Add more props, fix more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Oct 10, 2017
1 parent e61b202 commit 29e3e04
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
},
"dependencies": {
"async": "^2.1.4",
"await-stream-ready": "^1.0.1",
"bootstrap": "^3.3.6",
"bootstrap-3-typeahead": "^4.0.1",
"configstore": "^3.1.0",
Expand Down
7 changes: 6 additions & 1 deletion src/components/SearchContainer/Tabs/ComputerNodeData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ export default class ComputerNodeData extends Component {
if (type === 'undefined'){
return "No Data";
}else if (obj.hasOwnProperty('low')){
return new Date(obj.low * 1000).toUTCString();
var t = obj.low;
if (t === 0){
return "Never";
}else{
return new Date(obj.low * 1000).toUTCString();
}
}else if (type === 'boolean'){
return obj.toString().toTitleCase();
}else if (obj === ""){
Expand Down
5 changes: 0 additions & 5 deletions src/components/SearchContainer/Tabs/GroupNodeData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export default class GroupNodeData extends Component {
}.bind(this)}
/>
</dd>
<br />
<h4>Group Members</h4>
<dt>
Direct Members
Expand Down Expand Up @@ -237,7 +236,6 @@ export default class GroupNodeData extends Component {
}.bind(this)}
/>
</dd>
<br />
<h4>Group Membership</h4>
<dt>
First Degree Group Membership
Expand Down Expand Up @@ -277,7 +275,6 @@ export default class GroupNodeData extends Component {
}.bind(this)}
/>
</dd>
<br />
<h4>Local Admin Rights</h4>
<dt>
First Degree Local Admin
Expand Down Expand Up @@ -318,7 +315,6 @@ export default class GroupNodeData extends Component {
}.bind(this)}
/>
</dd>
<br />
<h4>Outbound Object Control</h4>
<dt>
First Degree Object Control
Expand Down Expand Up @@ -358,7 +354,6 @@ export default class GroupNodeData extends Component {
}.bind(this)}
/>
</dd>
<br />
<h4>Inbound Object Control</h4>
<dt>
Explicit Object Controllers
Expand Down
16 changes: 14 additions & 2 deletions src/components/SearchContainer/Tabs/UserNodeData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export default class UserNodeData extends Component {

var props = driver.session();
props.run("MATCH (n:User {name:{name}}) RETURN n", {name: payload})
.then(function(result){
.then(function(result){
var properties = result.records[0]._fields[0].properties;
this.setState({propertyMap: properties});
props.close();
}.bind(this));
Expand Down Expand Up @@ -168,7 +169,12 @@ export default class UserNodeData extends Component {
if (type === 'undefined'){
return "No Data";
}else if (obj.hasOwnProperty('low')){
return new Date(obj.low * 1000).toUTCString();
var t = obj.low;
if (t === 0){
return "Never";
}else{
return new Date(obj.low * 1000).toUTCString();
}
}else if (type === 'boolean'){
return obj.toString().toTitleCase();
}else if (obj === ""){
Expand Down Expand Up @@ -216,6 +222,12 @@ export default class UserNodeData extends Component {
<dd>
{this.convertToDisplayProp("Enabled")}
</dd>
<dt>
Email
</dt>
<dd>
{this.convertToDisplayProp("Email")}
</dd>
<dt>
Service Principal Names
</dt>
Expand Down

0 comments on commit 29e3e04

Please sign in to comment.