From c4d65dcd2f1a44985b7884bde40a8820ffb074c9 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Wed, 17 Jun 2020 15:44:16 +0200 Subject: [PATCH] F #1417: Show one IP in dropdown (#18) Signed-off-by: Frederick Borges (cherry picked from commit 52b314a73f360d490eb12d84c8ffe98c9ed415ae) --- src/sunstone/public/app/opennebula/vm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/opennebula/vm.js b/src/sunstone/public/app/opennebula/vm.js index 5051857096..7b8425e7de 100644 --- a/src/sunstone/public/app/opennebula/vm.js +++ b/src/sunstone/public/app/opennebula/vm.js @@ -835,7 +835,7 @@ define(function(require) { } // If it has less than "numIPs" IPs - var numIPs = 3; + var numIPs = 2; if ((ips.length < numIPs)) return ipsStr; // Take the first x @@ -847,7 +847,7 @@ define(function(require) { // Format the other IPs inside a dropdown if (ips.length){ - html += '