mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
new UI - volume page - hide actions when volume state is "Creating" or "Corrupted" or volume is attaching to a VM.
This commit is contained in:
parent
8dcea8c07e
commit
3f9b58bc73
@ -71,6 +71,7 @@ function volumeJsonToDetailsTab(jsonObj){
|
||||
//buildActionLinkForDetailsTab("Take Snapshot", volumeActionMap, $actionMenu, volumeListAPIMap); //show take snapshot
|
||||
//buildActionLinkForDetailsTab("Recurring Snapshot", volumeActionMap, $actionMenu, volumeListAPIMap); //show Recurring Snapshot
|
||||
|
||||
if(jsonObj.state != "Creating" && jsonObj.state != "Corrupted" && jsonObj.name != "attaching") {
|
||||
if(jsonObj.type=="ROOT") {
|
||||
if (jsonObj.vmstate == "Stopped")
|
||||
buildActionLinkForDetailsTab("Create Template", volumeActionMap, $actionMenu, volumeListAPIMap); //show create template
|
||||
@ -90,13 +91,7 @@ function volumeJsonToDetailsTab(jsonObj){
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if(jsonObj.state == "Creating" || jsonObj.state == "Corrupted" || jsonObj.name == "attaching")
|
||||
template.find("#grid_links_container").hide(); //hide actions panel
|
||||
else
|
||||
template.find("#grid_links_container").show(); //show actions panel
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
function volumeClearRightPanel() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user