mirror of https://github.com/apache/cloudstack.git
bug 8053: cloudStack - volume page - hide Download Volume action for volume whose state is Allocated (newly created volume).
This commit is contained in:
parent
a935e52b62
commit
edcc962a3b
|
|
@ -449,7 +449,9 @@ function volumeJsonToDetailsTab(){
|
|||
|
||||
buildActionLinkForTab("label.action.take.snapshot", volumeActionMap, $actionMenu, $midmenuItem1, $thisTab); //show take snapshot
|
||||
buildActionLinkForTab("label.action.recurring.snapshot", volumeActionMap, $actionMenu, $midmenuItem1, $thisTab); //show Recurring Snapshot
|
||||
buildActionLinkForTab("label.action.download.volume", volumeActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
|
||||
if(jsonObj.state != "Allocated")
|
||||
buildActionLinkForTab("label.action.download.volume", volumeActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
|
||||
if(jsonObj.state != "Creating" && jsonObj.state != "Corrupted" && jsonObj.name != "attaching") {
|
||||
if(jsonObj.type=="ROOT") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue