We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08bfb44 + bbb4ffa commit a1fb44eCopy full SHA for a1fb44e
ui/src/views/infra/network/IpRangesTabPublic.vue
@@ -465,12 +465,17 @@ export default {
465
return
466
}
467
468
- api('dedicatePublicIpRange', {
+ var params = {
469
id: this.selectedItem.id,
470
zoneid: this.selectedItem.zoneid,
471
- domainid: this.addAccount.domain,
472
- account: this.addAccount.account
473
- }).catch(error => {
+ domainid: this.addAccount.domain
+ }
+
474
+ if (this.addAccount.account) {
475
+ params.account = this.addAccount.account
476
477
478
+ api('dedicatePublicIpRange', params).catch(error => {
479
this.$notifyError(error)
480
}).finally(() => {
481
this.addAccountModal = false
0 commit comments