Revision 4b2ed497 ui/templates/machines_icon.html
b/ui/templates/machines_icon.html | ||
---|---|---|
533 | 533 |
new ones to the list |
534 | 534 |
*/ |
535 | 535 |
$.each(data.servers.values, function(i,server) { |
536 |
|
|
536 | 537 |
// get DOM element, if it exists |
537 | 538 |
existing = $('#machinesview-icon.standard #' + server.id); |
538 | 539 |
// get server OS, if it exists |
... | ... | |
687 | 688 |
if (!(server.metadata == undefined)) { |
688 | 689 |
list_metadata_keys(server.id, server.metadata.values); |
689 | 690 |
} |
691 |
|
|
692 |
// if machine in destroy state keep it that way |
|
693 |
var server = get_machine(server.id); |
|
694 |
if (server.status == "DESTROY") { |
|
695 |
existing = $('#machinesview-icon.standard #' + server.id); |
|
696 |
if (existing.length) { |
|
697 |
$(existing).find('.status').text(TRANSITIONS['Destroying']); |
|
698 |
$(existing).find('.state').removeClass().addClass('state destroying-state'); |
|
699 |
$(existing).find('.spinner').show(); |
|
700 |
} |
|
701 |
} |
|
702 |
|
|
703 |
|
|
690 | 704 |
}); |
691 | 705 |
/* |
692 | 706 |
Do some standard stuff, repeated each time |
Also available in: Unified diff