FileBrowser: support 'virtual'/'v' file type
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@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
661faeedf5
commit
c1c8cfa85b
@ -36,6 +36,9 @@ Ext.define('proxmox-file-tree', {
|
|||||||
case 's': // socket
|
case 's': // socket
|
||||||
icon = 'plug';
|
icon = 'plug';
|
||||||
break;
|
break;
|
||||||
|
case 'v': // virtual
|
||||||
|
icon = 'cube';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
icon = 'file-o';
|
icon = 'file-o';
|
||||||
break;
|
break;
|
||||||
@ -217,6 +220,7 @@ Ext.define("Proxmox.window.FileBrowser", {
|
|||||||
case 'l': return gettext('Softlink');
|
case 'l': return gettext('Softlink');
|
||||||
case 'p': return gettext('Pipe/Fifo');
|
case 'p': return gettext('Pipe/Fifo');
|
||||||
case 's': return gettext('Socket');
|
case 's': return gettext('Socket');
|
||||||
|
case 'v': return gettext('Virtual');
|
||||||
default: return Proxmox.Utils.unknownText;
|
default: return Proxmox.Utils.unknownText;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user