Skip to content

Commit af7a443

Browse files
committed
address comments
1 parent d730c42 commit af7a443

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3066,7 +3066,7 @@
30663066
"message.no.description": "No description entered.",
30673067
"message.offering.internet.protocol.warning": "WARNING: IPv6 supported Networks use static routing and will require upstream routes to be configured manually.",
30683068
"message.offering.ipv6.warning": "Please refer documentation for creating IPv6 enabled Network/VPC offering <a href='http://docs.cloudstack.apache.org/en/latest/plugins/ipv6.html#isolated-network-and-vpc-tier'>IPv6 support in CloudStack - Isolated Networks and VPC Network Tiers</a>",
3069-
"message.oobm.configured": "Successfully configured Out of Band Management for host",
3069+
"message.oobm.configured": "Successfully configured out-of-band management for host",
30703070
"message.ovf.configurations": "OVF configurations available for the selected appliance. Please select the desired value. Incompatible compute offerings will get disabled.",
30713071
"message.path.description": "NFS: exported path from the server. VMFS: /datacenter name/datastore name. SharedMountPoint: path where primary storage is mounted, such as /mnt/primary.",
30723072
"message.please.confirm.remove.ssh.key.pair": "Please confirm that you want to remove this SSH key pair.",

ui/src/views/infra/ConfigureHostOOBM.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
</a-form-item>
8282
</div>
8383
<div :span="24" class="action-button">
84-
<a-button @click="$emit('close-action')">{{ $t('label.cancel') }}</a-button>
84+
<a-button @click="onCloseAction">{{ $t('label.cancel') }}</a-button>
8585
<a-button type="primary" @click="handleSubmit" ref="submit">{{ $t('label.ok') }}</a-button>
8686
</div>
8787
</a-form>
@@ -136,7 +136,7 @@ export default {
136136
e.preventDefault()
137137
this.formRef.value.validate().then(() => {
138138
const values = toRaw(this.form)
139-
var params = {
139+
const params = {
140140
hostid: this.resource.id,
141141
address: values.address,
142142
port: values.port,
@@ -146,22 +146,22 @@ export default {
146146
}
147147
148148
api('configureOutOfBandManagement', {}, 'POST', params).then(_ => {
149-
this.$message.success(`${this.$t('message.oobm.configured')}`)
150-
this.$emit('close-action')
149+
this.$message.success(this.$t('message.oobm.configured'))
150+
this.$emit('refresh-data')
151+
this.onCloseAction()
151152
}).catch(error => {
152153
this.$notifyError(error)
153154
})
154155
})
156+
},
157+
onCloseAction () {
158+
this.$emit('close-action')
155159
}
156160
}
157161
}
158162
</script>
159163

160164
<style scoped>
161-
.reason {
162-
padding-top: 20px
163-
}
164-
165165
.form-layout {
166166
width: 30vw;
167167

0 commit comments

Comments
 (0)