Revision 55e4b353 ui/templates/machines_single.html
b/ui/templates/machines_single.html | ||
---|---|---|
56 | 56 |
<img class="spinner" style="display:none" src="static/icons/indicators/medium/progress.gif" /> |
57 | 57 |
<img class="wave" style="display:none" src="static/icons/indicators/medium/wave.gif" /> |
58 | 58 |
</div> |
59 |
<div class="progress-message"><span class="build-progress"></span></div> |
|
59 | 60 |
</div> |
60 | 61 |
<div class="column2"> |
61 | 62 |
<div class="machine-labels"> |
... | ... | |
641 | 642 |
if (server.id == current_serverId()) { |
642 | 643 |
get_server_stats(server.id); |
643 | 644 |
} |
645 |
|
|
646 |
server = get_machine(server.id); |
|
647 |
existing = $('#machinesview-single.single div.#' + server.id); |
|
644 | 648 |
|
645 | 649 |
// if machine in destroy state keep it that way |
646 |
var server = get_machine(server.id); |
|
647 | 650 |
if (server.status == "DESTROY") { |
648 | 651 |
existing = $('#machinesview-single.single #' + server.id); |
649 | 652 |
if (existing.length) { |
... | ... | |
653 | 656 |
existing.find(".column1 .wave").hide(); |
654 | 657 |
} |
655 | 658 |
} |
659 |
|
|
660 |
// update progress |
|
661 |
if (server.status == 'BUILD' && existing.length > 0) { |
|
662 |
var progress_details = get_progress_details(server.id); |
|
663 |
existing.find("span.build-progress").show().text(progress_details.msg); |
|
664 |
} else { |
|
665 |
existing.find("span.build-progress").hide(); |
|
666 |
} |
|
667 |
|
|
656 | 668 |
}); |
657 | 669 |
|
658 | 670 |
update_transition_names(); |
Also available in: Unified diff