mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
93546c7cf7
commit
757bb0c9b0
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user