summaryrefslogtreecommitdiff
path: root/app/client/system/system.component.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/system/system.component.js')
-rw-r--r--app/client/system/system.component.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js
index f8cf139..07428e5 100644
--- a/app/client/system/system.component.js
+++ b/app/client/system/system.component.js
@@ -90,7 +90,7 @@ class System extends Component {
)
}
renderCommandOutput(){
- const { cmd } = this.props
+ const { cmd, stdout, stderr } = this.props
let output
if (cmd.loading) {
output = 'Loading: ' + cmd.name
@@ -106,6 +106,13 @@ class System extends Component {
}
}
}
+ else {
+ output = stdout
+ if (cmd.stderr) {
+ output += '\n\n_________________________________\n\n'
+ output += stderr
+ }
+ }
return (
<div>
<div className='screen'>{output}</div>