]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
FileBrowser: show errors in messagebox and allow expand 'all'
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 22 Apr 2021 15:34:57 +0000 (17:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 15:52:52 +0000 (17:52 +0200)
commit6f9f9c71b384c6840659a08a5f0d2aa1a53640ae
tree2833a101d8e66740f2bab9c730b9a25c61fa9c61
parentc1c8cfa85bf1c63858b7f782fe8486a3e97bad8c
FileBrowser: show errors in messagebox and allow expand 'all'

If an error is received upon expanding a node, chances are the rest of
the tree is still valid (i.e. opening a partition fails because it
doesn't contain a supported filesystem). Only show an error box for the
user, but don't mask the component in that case. Additionally, disable
the download button.

Also support an archive set to 'all' to expand all children, useful for
initializing a file-restore VM on initial load.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/window/FileBrowser.js