[pve-devel] [PATCH v2 proxmox-widget-toolkit 12/13] FileBrowser: support 'virtual'/'v' file type

Stefan Reiter s.reiter at proxmox.com
Thu Apr 22 17:34:56 CEST 2021


Denotes objects like disks ".img.fidx" files, which shouldn't be
downloadable, but should still approximate a directory entry.

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---

new in v2

 src/window/FileBrowser.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/window/FileBrowser.js b/src/window/FileBrowser.js
index e90b717..d138d1b 100644
--- a/src/window/FileBrowser.js
+++ b/src/window/FileBrowser.js
@@ -36,6 +36,9 @@ Ext.define('proxmox-file-tree', {
 		    case 's': // socket
 			icon = 'plug';
 			break;
+		    case 'v': // virtual
+			icon = 'cube';
+			break;
 		    default:
 			icon = 'file-o';
 			break;
@@ -217,6 +220,7 @@ Ext.define("Proxmox.window.FileBrowser", {
 			    case 'l': return gettext('Softlink');
 			    case 'p': return gettext('Pipe/Fifo');
 			    case 's': return gettext('Socket');
+			    case 'v': return gettext('Virtual');
 			    default: return Proxmox.Utils.unknownText;
 			}
 		    },
-- 
2.20.1





More information about the pve-devel mailing list