[pve-devel] [PATCH widget-toolkit] start node disk view unexpanded

Oguz Bektas o.bektas at proxmox.com
Tue Jul 6 14:20:07 CEST 2021


gets clunky with a lot of disks and partitions when all of them are
expanded by default.
so we can set the default to 'false' and let the user expand as they wish.

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---

requested by user on forum:
https://forum.proxmox.com/threads/start-disk-view-unexpanded.89195/


 src/panel/DiskList.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panel/DiskList.js b/src/panel/DiskList.js
index 90a6553..acbcdf6 100644
--- a/src/panel/DiskList.js
+++ b/src/panel/DiskList.js
@@ -168,7 +168,7 @@ Ext.define('Proxmox.DiskList', {
 	    for (const item of records) {
 		let data = item.data;
 		data.leaf = true;
-		data.expanded = true;
+		data.expanded = false;
 		data.children = [];
 		data.iconCls = 'fa fa-fw fa-hdd-o x-fa-tree';
 		if (!data.parent) {
-- 
2.30.2






More information about the pve-devel mailing list