From 4ad3a7cc2c6c75df15d397a50fc64f193f40fa1b Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Thu, 7 Apr 2022 14:15:44 +0200 Subject: [PATCH] ui: lxc: resources: consider rootfs as a disk again Commit 809f6b6e ("ui: lxc resources: switch to vector based font awesome icons") seems like an innocent change, but it broke the (very brittle) logic here by removing the tdCls for rootfs. Signed-off-by: Fabian Ebner --- www/manager6/lxc/Resources.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/lxc/Resources.js b/www/manager6/lxc/Resources.js index 683be526..7db55280 100644 --- a/www/manager6/lxc/Resources.js +++ b/www/manager6/lxc/Resources.js @@ -263,7 +263,7 @@ Ext.define('PVE.lxc.RessourceView', { var rowdef = rows[key]; var pending = rec.data.delete || me.hasPendingChanges(key); - var isDisk = rowdef.tdCls === 'pve-itype-icon-storage'; + let isDisk = key === 'rootfs' || key.match(/^(mp|unused)\d+/); var isUnusedDisk = key.match(/^unused\d+/); var isUsedDisk = isDisk && !isUnusedDisk;