new UI - volume page - hide action Create Template from UI until backend is fixed (createTemplateFromVolume is not working at backend).

This commit is contained in:
Jessica Wang 2010-10-06 10:04:45 -07:00
parent 139ff273ff
commit 4ccd67bba7
1 changed files with 3 additions and 2 deletions

View File

@ -422,8 +422,9 @@ function volumeJsonToDetailsTab(jsonObj){
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
if (jsonObj.vmstate == "Stopped") {
//buildActionLinkForDetailsTab("Create Template", volumeActionMap, $actionMenu, volumeListAPIMap); //backend of CreateTemplateFromVolume is not working. Hide the option from UI until backend is fixed.
}
}
else {
if (jsonObj.virtualmachineid != null) {