This is an automated email from the ASF dual-hosted git repository.
RosiKyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new f00e0c75121 ui: fix SourceNat error when adding a network offering
(#14576)
f00e0c75121 is described below
commit f00e0c75121be758aea1dc8f077e7d57dfbf0a1e
Author: Manoj Kumar <[email protected]>
AuthorDate: Wed Nov 4 16:23:41 2026 +0530
ui: fix SourceNat error when adding a network offering (#14576)
buildServiceCapabilityParams is a standalone function, so `this` is
undefined and `this.selectedServiceProviderMap` threw a TypeError
whenever SourceNat was selected, leaving the Add Network Offering form
stuck on OK. Use the selectedServiceProviderMap parameter instead.
---
ui/src/composables/useServiceCapabilityParams.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/composables/useServiceCapabilityParams.js
b/ui/src/composables/useServiceCapabilityParams.js
index 99923f9ced8..99fe6627f2c 100644
--- a/ui/src/composables/useServiceCapabilityParams.js
+++ b/ui/src/composables/useServiceCapabilityParams.js
@@ -41,7 +41,7 @@ export function buildServiceCapabilityParams (params, values,
selectedServicePro
}
// SourceNat capabilities
if (supportedServices.includes('SourceNat')) {
- const isNetrisSourceNat = this.selectedServiceProviderMap.SourceNat ===
'Netris'
+ const isNetrisSourceNat = selectedServiceProviderMap.SourceNat === 'Netris'
if (values.redundantroutercapability === true) {
params[`serviceCapabilityList[${serviceCapabilityIndex}].service`] =
'SourceNat'
params[`serviceCapabilityList[${serviceCapabilityIndex}].capabilitytype`] =
'RedundantRouter'