Commit ae708861 authored by Leigh B Stoller's avatar Leigh B Stoller

Make imaging error more explicit in the modal. Red X instead of green

checkmarks.
parent fa4cf33f
......@@ -32,6 +32,11 @@ ol.progtrckr li.progtrckr-todo {
border-bottom: 4px solid silver;
}
ol.progtrckr li.progtrckr-failed {
color: red;
border-bottom: 4px solid red;
}
ol.progtrckr li:after {
content: "\00a0\00a0";
}
......@@ -59,3 +64,13 @@ ol.progtrckr li.progtrckr-todo:before {
font-size: 1.5em;
bottom: -1.6em;
}
ol.progtrckr li.progtrckr-failed:before {
content: "\0058";
color: white;
background-color: red;
height: 1.2em;
width: 1.2em;
line-height: 1.2em;
border: none;
border-radius: 1.2em;
}
......@@ -15,6 +15,8 @@ define(['underscore', 'js/quickvm_sup', 'filesize',
function ShowImagingModal()
{
var laststatus = "preparing";
//
// Ask the server for information to populate the imaging modal.
//
......@@ -86,18 +88,24 @@ define(['underscore', 'js/quickvm_sup', 'filesize',
return;
}
else if (status == "failed") {
$('#tracker-imaging').removeClass('progtrckr-todo');
$('#tracker-imaging').addClass('progtrckr-done');
$('#tracker-finishing').removeClass('progtrckr-todo');
$('#tracker-finishing').addClass('progtrckr-done');
if (laststatus == "preparing") {
$('#tracker-imaging').removeClass('progtrckr-todo');
$('#tracker-imaging').addClass('progtrckr-failed');
}
if (laststatus == "imaging" || laststatus == "preparing") {
$('#tracker-finishing').removeClass('progtrckr-todo');
$('#tracker-finishing').addClass('progtrckr-failed');
}
$('#tracker-ready').removeClass('progtrckr-todo');
$('#tracker-ready').addClass('progtrckr-done');
$('#tracker-ready').addClass('progtrckr-failed');
$('#tracker-ready').html("Failed");
$('#imaging-spinner').addClass("invisible");
$('#imaging-close').removeClass("hidden");
completion_callback(1);
return;
}
laststatus = status;
}
//
// Done, we need to do something here if we exited before
......
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