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 <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2022-04-07 14:15:44 +02:00 committed by Thomas Lamprecht
parent 4981660f2a
commit 4ad3a7cc2c

View File

@ -263,7 +263,7 @@ Ext.define('PVE.lxc.RessourceView', {
var rowdef = rows[key]; var rowdef = rows[key];
var pending = rec.data.delete || me.hasPendingChanges(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 isUnusedDisk = key.match(/^unused\d+/);
var isUsedDisk = isDisk && !isUnusedDisk; var isUsedDisk = isDisk && !isUnusedDisk;