Commit f0f742b6 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

runner: fix concurent status displayed

parent 6af6c81b
...@@ -236,20 +236,24 @@ function setRunningState(data) { ...@@ -236,20 +236,24 @@ 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=software][id=running_info]").length === 0) if($("[class=software][id=running_info]").length === 0) {
$("p#running_info").remove()
$("#running img").before('<p id="running_info" class="software">Building software...</p>'); $("#running img").before('<p id="running_info" class="software">Building software...</p>');
} }
} }
}
if (data.instance.state) { if (data.instance.state) {
///Draft!! ///Draft!!
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) if($("[class=instance][id=running_info]").length === 0) {
$("p#running_info").remove()
$("#running img").before('<p id="running_info" class="instance">Running instance...</p>'); $("#running img").before('<p id="running_info" class="instance">Running instance...</p>');
} }
} }
} }
}
} else { } else {
if ( $("#running").is(":visible") ) { if ( $("#running").is(":visible") ) {
$("#error").Popup("Slapgrid finished running your " + currentProcess + " profile", {type: 'info', duration: 3000}); $("#error").Popup("Slapgrid finished running your " + currentProcess + " profile", {type: 'info', duration: 3000});
......
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