mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 7781: instance page - show red color when state is "Error" in both middle menu and right panel.
This commit is contained in:
parent
e6b0346270
commit
16b52c9fa0
@ -783,7 +783,7 @@ function switchToTab(tabIndex, tabArray, tabContentArray, afterSwitchFnArray) {
|
||||
function updateVmStateInMidMenu(jsonObj, $midmenuItem1) {
|
||||
if(jsonObj.state == "Running")
|
||||
$midmenuItem1.find("#icon").attr("src", "images/status_green.png");
|
||||
else if(jsonObj.state == "Stopped")
|
||||
else if(jsonObj.state == "Stopped" || jsonObj.state == "Error")
|
||||
$midmenuItem1.find("#icon").attr("src", "images/status_red.png");
|
||||
else //Destroyed, Creating, ~
|
||||
$midmenuItem1.find("#icon").attr("src", "images/status_gray.png");
|
||||
@ -852,7 +852,7 @@ function resetViewConsoleAction(jsonObj, $detailsTab) {
|
||||
function setVmStateInRightPanel(stateValue, $stateField) {
|
||||
if(stateValue == "Running")
|
||||
$stateField.text(stateValue).removeClass("red gray").addClass("green");
|
||||
else if(stateValue == "Stopped")
|
||||
else if(stateValue == "Stopped" || stateValue == "Error")
|
||||
$stateField.text(stateValue).removeClass("green gray").addClass("red");
|
||||
else //Destroyed, Creating, ~
|
||||
$stateField.text(stateValue).removeClass("green red").addClass("gray");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user