Commit 67b1abe3 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: quick fix to a bug in UI, during slapgrid run.

This bug makes the display of "Running instance..." 2 times instead of one
parent 8146f9bb
...@@ -242,6 +242,7 @@ function setRunningState(data) { ...@@ -242,6 +242,7 @@ function setRunningState(data) {
if ( $("#running").children('span').length === 0 ) { if ( $("#running").children('span').length === 0 ) {
$("#softrun").removeClass('slapos_run'); $("#softrun").removeClass('slapos_run');
$("#softrun").addClass('slapos_stop'); $("#softrun").addClass('slapos_stop');
if($("[class=instance][id=running_info]").length === 0)
$("#running img").before('<p id="running_info" class="instance">Running instance...</p>'); $("#running img").before('<p id="running_info" class="instance">Running instance...</p>');
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment