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

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 09a03a7  Add CIDR next to the network name (#729)
09a03a7 is described below

commit 09a03a72e3a619b9e7eaf3a082d01a5624a42265
Author: Hoang Nguyen <[email protected]>
AuthorDate: Mon Sep 21 18:31:23 2020 +0700

    Add CIDR next to the network name (#729)
---
 src/views/compute/DeployVM.vue | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/views/compute/DeployVM.vue b/src/views/compute/DeployVM.vue
index 15e31ec..a4b42bf 100644
--- a/src/views/compute/DeployVM.vue
+++ b/src/views/compute/DeployVM.vue
@@ -277,11 +277,14 @@
                           ]"
                           :placeholder="nic.networkDescription"
                           :filterOption="(input, option) => {
-                            return 
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase())
 >= 0
+                            return 
option.componentOptions.children[0].children[0].text.toLowerCase().indexOf(input.toLowerCase())
 >= 0
                           }"
                         >
                           <a-select-option v-for="opt in options.networks" 
:key="opt.id">
-                            {{ opt.name || opt.description }}
+                            <span v-if="opt.type!=='L2'">
+                              {{ opt.name || opt.description }} ({{ 
`${$t('label.cidr')}: ${opt.cidr}` }})
+                            </span>
+                            <span v-else>{{ opt.name || opt.description 
}}</span>
                           </a-select-option>
                         </a-select>
                       </a-form-item>

Reply via email to