bug 12552: cloudStack 3.0 new UI - template/ISO page - do not show copy template/ISO action when template's zoneId is null or "-1"(i.e. all zones).

This commit is contained in:
Jessica Wang 2011-12-19 19:23:26 -08:00
parent 93546c7cf7
commit 757bb0c9b0

View File

@ -1507,8 +1507,11 @@
//do nothing
}
else {
allowedActions.push("edit");
allowedActions.push("copyTemplate");
allowedActions.push("edit");
if(jsonObj.zoneid != null || jsonObj.zoneid != "-1")
allowedActions.push("copyTemplate");
//allowedActions.push("createVm"); // For Beta2, this simply doesn't work without a network.
}
@ -1546,8 +1549,10 @@
//do nothing
}
else {
allowedActions.push("edit");
allowedActions.push("copyISO");
allowedActions.push("edit");
if(jsonObj.zoneid != null || jsonObj.zoneid != "-1")
allowedActions.push("copyISO");
}
// "Create VM"