From 377a7a3c5e8a4a046ce4cd26bfba749b1e2e0df7 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Mon, 16 Oct 2017 17:54:00 +0300 Subject: [PATCH] Minor improvements to preview pane --- .../cc/ui/src/components/preview-pane/PreviewPane.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monkey_island/cc/ui/src/components/preview-pane/PreviewPane.js b/monkey_island/cc/ui/src/components/preview-pane/PreviewPane.js index 0df12e733..b5226fa8d 100644 --- a/monkey_island/cc/ui/src/components/preview-pane/PreviewPane.js +++ b/monkey_island/cc/ui/src/components/preview-pane/PreviewPane.js @@ -8,7 +8,7 @@ class PreviewPaneComponent extends React.Component { return ( Operating System - {asset.os} + {asset.os.charAt(0).toUpperCase() + asset.os.slice(1)} ); } @@ -40,11 +40,11 @@ class PreviewPaneComponent extends React.Component { ); } - aliveRow(asset) { + statusRow(asset) { return ( - Alive - {(!asset.dead).toString()} + Status + {(asset.dead) ? 'Dead' : 'Alive'} ); } @@ -65,7 +65,7 @@ class PreviewPaneComponent extends React.Component { Force Kill - this.forceKill(e, asset)} /> @@ -115,8 +115,8 @@ class PreviewPaneComponent extends React.Component {
- {this.aliveRow(asset)} {this.osRow(asset)} + {this.statusRow(asset)} {this.ipsRow(asset)} {this.servicesRow(asset)} {this.accessibleRow(asset)}