Skip to content

Commit 3e2eb59

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2120: mixed zone management - UI: make global function changeURL() to pass zonetype to API calls based on selected option in zone type dropdown on top menu.
1 parent 7cf312a commit 3e2eb59

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎ui/scripts/sharedFunctions.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ function createURL(apiName, options) {
114114
if (cloudStack.context && cloudStack.context.projects && !options.ignoreProject) {
115115
urlString = urlString + '&projectid=' + cloudStack.context.projects[0].id;
116116
}
117+
118+
if(cloudStack.context != null && cloudStack.context.zoneType != null && cloudStack.context.zoneType.length > 0) { //Basic type or Advanced type
119+
urlString = urlString + '&zonetype=' + cloudStack.context.zoneType;
120+
}
117121

118122
return urlString;
119123
}

0 commit comments

Comments
 (0)