[pve-devel] [PATCH manager 2/3] only show 'more' buttons for ips when there are actually ips to show

Dominik Csapak d.csapak at proxmox.com
Tue May 22 14:02:34 CEST 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/AgentIPView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/qemu/AgentIPView.js b/www/manager6/qemu/AgentIPView.js
index 13fe3e9a..11afefb7 100644
--- a/www/manager6/qemu/AgentIPView.js
+++ b/www/manager6/qemu/AgentIPView.js
@@ -148,7 +148,7 @@ Ext.define('PVE.qemu.AgentIPView', {
 	if (unsuccessful) {
 	    text = gettext('Guest Agent not running');
 	} else if (me.agent && me.running) {
-	    if (Ext.isArray(me.nics)) {
+	    if (Ext.isArray(me.nics) && me.nics.length) {
 		more = true;
 		var ips = me.getDefaultIps(me.nics);
 		if (ips.length !== 0) {
-- 
2.11.0




More information about the pve-devel mailing list