From 03558174ef4f15f542a61584013a195481188e7f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 17 Jul 2019 13:26:59 +0200 Subject: [PATCH] ui: qemu/HWView: only render icon when in grid Signed-off-by: Thomas Lamprecht --- www/manager6/qemu/HardwareView.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js index 20f54cbe..94324323 100644 --- a/www/manager6/qemu/HardwareView.js +++ b/www/manager6/qemu/HardwareView.js @@ -33,7 +33,13 @@ Ext.define('PVE.qemu.HardwareView', { icon = ""; metaData.tdCls += " pve-itype-fa"; } - return icon + txt; + + // only return icons in grid but not remove dialog + if (rowIndex !== undefined) { + return icon + txt; + } else { + return txt; + } }, initComponent : function() {