mirror of https://github.com/apache/cloudstack.git
ui: show only advanced zones for vmautoscale form (#7411)
* ui: show only Advance zones for vmautoscale form Fixes #7409 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix non-securitygroupenabled zones Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
d1707009f6
commit
965d29a899
|
|
@ -1201,6 +1201,7 @@ export default {
|
|||
},
|
||||
zones: {
|
||||
list: 'listZones',
|
||||
networktype: 'Advanced',
|
||||
isLoad: true,
|
||||
field: 'zoneid'
|
||||
},
|
||||
|
|
@ -2548,7 +2549,7 @@ export default {
|
|||
const args = { listall: true, showicon: true }
|
||||
if (zoneId) args.id = zoneId
|
||||
api(param.list, args).then(json => {
|
||||
const zoneResponse = json.listzonesresponse.zone || []
|
||||
const zoneResponse = (json.listzonesresponse.zone || []).filter(item => item.securitygroupsenabled === false)
|
||||
if (listZoneAllow && listZoneAllow.length > 0) {
|
||||
zoneResponse.map(zone => {
|
||||
if (listZoneAllow.includes(zone.id)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue