* [pve-devel] [PATCH widget-toolkit] start node disk view unexpanded
@ 2021-07-06 12:20 Oguz Bektas
2021-07-06 12:55 ` Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Oguz Bektas @ 2021-07-06 12:20 UTC (permalink / raw)
To: pve-devel
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-06 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 12:20 [pve-devel] [PATCH widget-toolkit] start node disk view unexpanded Oguz Bektas
2021-07-06 12:55 ` Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox