Commit 099d7e2d authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: fix bug in ui, which could display 2 times "Building software"

parent f6c196fe
......@@ -234,7 +234,8 @@ function setRunningState(data) {
if ( $("#running").children('span').length === 0 ) {
$("#softrun").removeClass('slapos_run');
$("#softrun").addClass('slapos_stop');
$("#running img").before('<p id="running_info" class="software">Building software...</p>');
if($("[class=software][id=running_info]").length === 0)
$("#running img").before('<p id="running_info" class="software">Building software...</p>');
}
}
if (data.instance.state) {
......
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