8080 </span >
8181 <global-outlined v-else style =" margin-right : 5px " />
8282 </span >
83- <span v-if =" (field.name.startsWith('domain') || field.name === 'account')" >
83+ <span v-if =" (field.name.startsWith('domain') || field.name === 'account' || field.name.startsWith('associatednetwork') )" >
8484 <span v-if =" opt.icon" >
8585 <resource-icon :image =" opt.icon.base64image" size =" 1x" style =" margin-right : 5px " />
8686 </span >
9090 <status :text =" opt.state" />
9191 </span >
9292 {{ $t((['storageid'].includes(field.name) || !opt.path) ? opt.name : opt.path) }}
93- <span v-if =" (field.name.startsWith('associatednetwork'))" >
94- <span v-if =" opt.icon" >
95- <resource-icon :image =" opt.icon.base64image" size =" 1x" style =" margin-right : 5px " />
96- </span >
97- <block-outlined v-else style =" margin-right : 5px " />
98- </span >
99- {{ $t(opt.path || opt.name) }}
10093 </div >
10194 </a-select-option >
10295 </a-select >
@@ -313,7 +306,7 @@ export default {
313306 }
314307 if ([' zoneid' , ' domainid' , ' imagestoreid' , ' storageid' , ' state' , ' account' , ' hypervisor' , ' level' ,
315308 ' clusterid' , ' podid' , ' groupid' , ' entitytype' , ' accounttype' , ' systemvmtype' , ' scope' , ' provider' ,
316- ' type' , ' scope' , ' managementserverid' , ' serviceofferingid' , ' diskofferingid' , ' networkid' , ' usagetype' , ' restartrequired' ].includes (item)
309+ ' type' , ' scope' , ' managementserverid' , ' serviceofferingid' , ' diskofferingid' , ' networkid' , ' usagetype' , ' restartrequired' , ' guestiptype ' ].includes (item)
317310 ) {
318311 type = ' list'
319312 } else if (item === ' tags' ) {
@@ -335,9 +328,9 @@ export default {
335328 return arrayField
336329 },
337330 fetchStaticFieldData (arrayField ) {
338- if (arrayField .includes (' type' )) {
339- if (this .$route .path === ' /guestnetwork' || this .$route .path .includes (' /guestnetwork/ ' )) {
340- const typeIndex = this .fields .findIndex (item => item . name === ' type' )
331+ if (arrayField .includes (' type' ) || arrayField . includes ( ' guestiptype ' ) ) {
332+ if (this .$route .path . includes ( ' /guestnetwork' ) || this .$route .path .includes (' /networkoffering ' )) {
333+ const typeIndex = this .fields .findIndex (item => [ ' type' , ' guestiptype ' ]. includes ( item . name ) )
341334 this .fields [typeIndex].loading = true
342335 this .fields [typeIndex].opts = this .fetchGuestNetworkTypes ()
343336 this .fields [typeIndex].loading = false
@@ -982,7 +975,7 @@ export default {
982975 },
983976 fetchGuestNetworkTypes () {
984977 const types = []
985- if (this . apiName . indexOf ( ' listNetworks' ) > - 1 ) {
978+ if ([ ' listNetworks' , ' listNetworkOfferings ' ]. includes ( this . apiName ) ) {
986979 types .push ({
987980 id: ' Isolated' ,
988981 name: ' label.isolated'
0 commit comments