mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
7cf312a770
commit
3e2eb59723
|
|
@ -114,6 +114,10 @@ function createURL(apiName, options) {
|
|||
if (cloudStack.context && cloudStack.context.projects && !options.ignoreProject) {
|
||||
urlString = urlString + '&projectid=' + cloudStack.context.projects[0].id;
|
||||
}
|
||||
|
||||
if(cloudStack.context != null && cloudStack.context.zoneType != null && cloudStack.context.zoneType.length > 0) { //Basic type or Advanced type
|
||||
urlString = urlString + '&zonetype=' + cloudStack.context.zoneType;
|
||||
}
|
||||
|
||||
return urlString;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue