Commit ae56309d authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: update js to correctly display new /slapgridResult structure

parent 44643098
......@@ -186,7 +186,7 @@ function setRunningState(data) {
$("#running").show();
running = true;
//change run menu title and style
if (data.software) {
if (data.software.state) {
if ( $("#running").children('span').length === 0 ) {
$("#softrun").removeClass('slapos_run');
$("#softrun").addClass('slapos_stop');
......@@ -194,7 +194,7 @@ function setRunningState(data) {
}
processType = "Software";
}
if (data.instance) {
if (data.instance.state) {
///Draft!!
if ( $("#running").children('span').length === 0 ) {
$("#softrun").removeClass('slapos_run');
......
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