forked from p15670423/monkey
Remove description
This commit is contained in:
parent
4077ce15e2
commit
8675a7bb0b
|
@ -31,7 +31,7 @@ class NodeService:
|
||||||
# node is infected
|
# node is infected
|
||||||
new_node = NodeService.monkey_to_net_node(monkey)
|
new_node = NodeService.monkey_to_net_node(monkey)
|
||||||
for key in monkey:
|
for key in monkey:
|
||||||
if key not in ["_id", "modifytime", "parent", "dead"]:
|
if key not in ['_id', 'modifytime', 'parent', 'dead', 'description']:
|
||||||
new_node[key] = monkey[key]
|
new_node[key] = monkey[key]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -40,15 +40,6 @@ class PreviewPaneComponent extends React.Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
descriptionRow(asset) {
|
|
||||||
return (
|
|
||||||
<tr>
|
|
||||||
<th>Description</th>
|
|
||||||
<td>{asset.description}</td>
|
|
||||||
</tr>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
aliveRow(asset) {
|
aliveRow(asset) {
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -124,7 +115,6 @@ class PreviewPaneComponent extends React.Component {
|
||||||
<div>
|
<div>
|
||||||
<table className="table table-condensed">
|
<table className="table table-condensed">
|
||||||
<tbody>
|
<tbody>
|
||||||
{this.descriptionRow(asset)}
|
|
||||||
{this.aliveRow(asset)}
|
{this.aliveRow(asset)}
|
||||||
{this.osRow(asset)}
|
{this.osRow(asset)}
|
||||||
{this.ipsRow(asset)}
|
{this.ipsRow(asset)}
|
||||||
|
|
Loading…
Reference in New Issue