mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI bug fix: 'Invalid ip address' when change vm ip address (#5744)
This commit is contained in:
parent
14d09a9fab
commit
46fa7f473d
@ -586,10 +586,13 @@ export default {
|
|||||||
if (this.loadingNic) return
|
if (this.loadingNic) return
|
||||||
this.loadingNic = true
|
this.loadingNic = true
|
||||||
this.showUpdateIpModal = false
|
this.showUpdateIpModal = false
|
||||||
api('updateVmNicIp', {
|
const params = {
|
||||||
nicId: this.editIpAddressNic,
|
nicId: this.editIpAddressNic
|
||||||
ipaddress: this.editIpAddressValue
|
}
|
||||||
}).then(response => {
|
if (this.editIpAddressValue) {
|
||||||
|
params.ipaddress = this.editIpAddressValue
|
||||||
|
}
|
||||||
|
api('updateVmNicIp', params).then(response => {
|
||||||
this.$pollJob({
|
this.$pollJob({
|
||||||
jobId: response.updatevmnicipresponse.jobid,
|
jobId: response.updatevmnicipresponse.jobid,
|
||||||
successMessage: this.$t('message.success.update.ipaddress'),
|
successMessage: this.$t('message.success.update.ipaddress'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user