since 'virtual guests' only make sense for a hypervisor, not e.g. a
directory for OVAs

also change the icon from 'desktop' to 'cloud-download' in the
non-esxi case

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
new in v2
 www/manager6/storage/Browser.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js
index 934ce706..01643c29 100644
--- a/www/manager6/storage/Browser.js
+++ b/www/manager6/storage/Browser.js
@@ -140,8 +140,10 @@ Ext.define('PVE.storage.Browser', {
                };
                me.items.push({
                    xtype: 'pveStorageContentView',
-                   title: gettext('Virtual Guests'),
-                   iconCls: 'fa fa-desktop',
+                   // each gettext needs to be in a separate line
+                   title: isEsxi ? gettext('Virtual Guests')
+                       : gettext('Import'),
+                   iconCls: isEsxi ? 'fa fa-desktop' : 'fa fa-cloud-download',
                    itemId: 'contentImport',
                    content: 'import',
                    useCustomRemoveButton: isEsxi, // hide default remove 
button for esxi
-- 
2.39.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to