bug 14332: cloudstack 3.0 UI - Host page - make "Remove Host" action available when host state is Down, Alert, Disconnected or when resource state is Maintenance, Disabled.

This commit is contained in:
Jessica Wang 2012-03-16 15:57:07 -07:00
parent a6a54a2f87
commit 5079cb6a06

View File

@ -7288,6 +7288,11 @@
allowedActions.push("edit");
allowedActions.push("remove");
}
if((jsonObj.state == "Down" || jsonObj.state == "Alert" || jsonObj.state == "Disconnected") && ($.inArray("remove", allowedActions) == -1)) {
allowedActions.push("remove");
}
return allowedActions;
}