Skip to content

Commit da08164

Browse files
author
Jessica Wang
committed
CLOUDSTACK-3950: UI > template/ISO page > hide copyTemplate/copyISO action when secondary storage is region-wide.
1 parent 6de00cb commit da08164

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎ui/scripts/templates.js‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,10 +1677,8 @@
16771677
//do nothing
16781678
} else {
16791679
allowedActions.push("edit");
1680-
1681-
//Swift and S3 are region-wide secondary storage
1682-
//if (havingSwift == false && havingS3 == false)
1683-
if (havingSwift == false && jsonObj.zoneid != null) { //"jsonObj.zoneid == null" means it is registered on region-wide S3 => global to all zones
1680+
1681+
if(g_regionsecondaryenabled != true) {
16841682
allowedActions.push("copyTemplate");
16851683
}
16861684

@@ -1718,8 +1716,7 @@
17181716
} else {
17191717
allowedActions.push("edit");
17201718

1721-
//Swift and S3 are region-wide secondary storage
1722-
if (havingSwift == false && jsonObj.zoneid != null) { //"jsonObj.zoneid == null" means it is registered on region-wide S3 => global to all zones
1719+
if(g_regionsecondaryenabled != true) {
17231720
allowedActions.push("copyISO");
17241721
}
17251722
}

0 commit comments

Comments
 (0)