[pve-devel] [RFC manager] Display subdirs when listing storage content
Dominic Jäger
d.jaeger at proxmox.com
Mon Dec 2 12:45:54 CET 2019
iso and vztmpl files can be in subdirectories of a storage's directory.
In this case we must make clear where they are exactly.
Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
Useless without the patch for pve-storage.
www/manager6/Utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index ad75c871..ccfd72fd 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -661,7 +661,7 @@ Ext.define('PVE.Utils', { utilities: {
Ext.String.leftPad(data.channel,2, '0') +
" ID " + data.id + " LUN " + data.lun;
}
- return data.volid.replace(/^.*:(.*\/)?/,'');
+ return data.volid.replace(/^.*:[^\/]*\//,'');
},
render_serverity: function (value) {
--
2.20.1
More information about the pve-devel
mailing list