mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3950: UI > template/ISO page > hide CopyTemplate/CopyISO action when it's region-wide (i.e. zoneid is null)
This commit is contained in:
parent
c0d2e3253b
commit
64ab85069d
|
|
@ -1660,9 +1660,12 @@
|
|||
} else {
|
||||
allowedActions.push("edit");
|
||||
|
||||
if (havingSwift == false && havingS3 == false)
|
||||
//Swift and S3 are region-wide secondary storage
|
||||
//if (havingSwift == false && havingS3 == false)
|
||||
if (havingSwift == false && jsonObj.zoneid != null) { //"jsonObj.zoneid == null" means it is registered on region-wide S3 => global to all zones
|
||||
allowedActions.push("copyTemplate");
|
||||
|
||||
}
|
||||
|
||||
//allowedActions.push("createVm"); // For Beta2, this simply doesn't work without a network.
|
||||
}
|
||||
|
||||
|
|
@ -1697,8 +1700,10 @@
|
|||
} else {
|
||||
allowedActions.push("edit");
|
||||
|
||||
if (havingSwift == false)
|
||||
//Swift and S3 are region-wide secondary storage
|
||||
if (havingSwift == false && jsonObj.zoneid != null) { //"jsonObj.zoneid == null" means it is registered on region-wide S3 => global to all zones
|
||||
allowedActions.push("copyISO");
|
||||
}
|
||||
}
|
||||
|
||||
// "Create VM"
|
||||
|
|
|
|||
Loading…
Reference in New Issue