From 4ccd67bba78544c8568a0cd92b8146afbfde11dd Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 6 Oct 2010 10:04:45 -0700 Subject: [PATCH] new UI - volume page - hide action Create Template from UI until backend is fixed (createTemplateFromVolume is not working at backend). --- ui/new/scripts/cloud.core2.volume.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/new/scripts/cloud.core2.volume.js b/ui/new/scripts/cloud.core2.volume.js index b09d60b1c82..c867ea51349 100644 --- a/ui/new/scripts/cloud.core2.volume.js +++ b/ui/new/scripts/cloud.core2.volume.js @@ -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) {