only show 'more' buttons for ips when there are actually ips to show

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-05-22 14:02:34 +02:00 committed by Thomas Lamprecht
parent 4783fd448f
commit b6027a95da

View File

@ -149,7 +149,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) {