You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by nv...@apache.org on 2022/04/14 04:19:29 UTC

[cloudstack] branch 4.16 updated: UI: fix dedicate public ip range to domain (#6258)

This is an automated email from the ASF dual-hosted git repository.

nvazquez pushed a commit to branch 4.16
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.16 by this push:
     new bbb4ffa593 UI: fix dedicate public ip range to domain (#6258)
bbb4ffa593 is described below

commit bbb4ffa5935d45cf4a81a82a2d87de681f1c4a4c
Author: Wei Zhou <we...@apache.org>
AuthorDate: Thu Apr 14 06:19:23 2022 +0200

    UI: fix dedicate public ip range to domain (#6258)
---
 ui/src/views/infra/network/IpRangesTabPublic.vue | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/ui/src/views/infra/network/IpRangesTabPublic.vue b/ui/src/views/infra/network/IpRangesTabPublic.vue
index ff1976f71e..41ab388f71 100644
--- a/ui/src/views/infra/network/IpRangesTabPublic.vue
+++ b/ui/src/views/infra/network/IpRangesTabPublic.vue
@@ -454,12 +454,17 @@ export default {
         return
       }
 
-      api('dedicatePublicIpRange', {
+      var params = {
         id: this.selectedItem.id,
         zoneid: this.selectedItem.zoneid,
-        domainid: this.addAccount.domain,
-        account: this.addAccount.account
-      }).catch(error => {
+        domainid: this.addAccount.domain
+      }
+
+      if (this.addAccount.account) {
+        params.account = this.addAccount.account
+      }
+
+      api('dedicatePublicIpRange', params).catch(error => {
         this.$notifyError(error)
       }).finally(() => {
         this.addAccountModal = false