This is an automated email from the ASF dual-hosted git repository.
weizhou 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 de6293b ui: Prevent multiple VM selection and list only VMs IP (#5609)
de6293b is described below
commit de6293b6f74d34a44db22532c624bbd9db48e650
Author: Pearl Dsilva <[email protected]>
AuthorDate: Fri Oct 22 17:26:03 2021 +0530
ui: Prevent multiple VM selection and list only VMs IP (#5609)
---
ui/src/views/network/PortForwarding.vue | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/ui/src/views/network/PortForwarding.vue
b/ui/src/views/network/PortForwarding.vue
index 6af7845..fb9cb60 100644
--- a/ui/src/views/network/PortForwarding.vue
+++ b/ui/src/views/network/PortForwarding.vue
@@ -259,7 +259,13 @@
</div>
<div slot="action" slot-scope="text, record" style="text-align:
center">
- <a-radio :value="record.id" @change="e => fetchNics(e)" />
+ <a-radio-group
+ class="radio-group"
+ :key="record.id"
+ v-model="checked"
+ @change="($event) => checked = $event.target.value">
+ <a-radio :value="record.id" @change="e => fetchNics(e)" />
+ </a-radio-group>
</div>
</a-table>
<a-pagination
@@ -325,6 +331,7 @@ export default {
inject: ['parentFetchData', 'parentToggleLoading'],
data () {
return {
+ checked: true,
selectedRowKeys: [],
showGroupActionModal: false,
selectedItems: [],
@@ -730,6 +737,7 @@ export default {
this.fetchVirtualMachines()
},
fetchNics (e) {
+ this.nics = []
this.addVmModalNicLoading = true
this.newRule.virtualmachineid = e.target.value
api('listNics', {