mirror of https://github.com/apache/cloudstack.git
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:
parent
d35a9dde95
commit
f9e50307ad
|
|
@ -7289,6 +7289,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue