forked from p15670423/monkey
minor fixes
This commit is contained in:
parent
d7ce6c2293
commit
4625378737
|
@ -61,7 +61,7 @@ class LocalRun(flask_restful.Resource):
|
|||
body = json.loads(request.data)
|
||||
if body.get('action') == 'run':
|
||||
local_run = run_local_monkey()
|
||||
return jsonify(is_running=local_run[0])
|
||||
return jsonify(is_running=local_run[0], error_text=local_run[1])
|
||||
|
||||
# default action
|
||||
return make_response({'error': 'Invalid action'}, 500)
|
||||
|
|
|
@ -112,7 +112,7 @@ class RunMonkeyPageComponent extends React.Component {
|
|||
renderIconByState(state) {
|
||||
if (state === 'running') {
|
||||
return <Icon name="check" className="text-success" style={{'marginLeft': '5px'}}/>
|
||||
} else if (state == 'installing') {
|
||||
} else if (state === 'installing') {
|
||||
return <Icon name="refresh" className="text-success" style={{'marginLeft': '5px'}}/>
|
||||
} else {
|
||||
return '';
|
||||
|
|
Loading…
Reference in New Issue