guest import: fine tune icons

We switched the storage browser navigation entry to 'Virtual Guests'
recently, but still used the icon for import.

For now switch to use to the one for VMs for this entry, matching the
label, and use the import icon for the "Import" button instead.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2024-03-27 12:44:40 +01:00
parent e4ebc552df
commit 549bffb7bb

View File

@ -139,7 +139,7 @@ Ext.define('PVE.storage.Browser', {
me.items.push({
xtype: 'pveStorageContentView',
title: gettext('Virtual Guests'),
iconCls: 'fa fa-cloud-download',
iconCls: 'fa fa-desktop',
itemId: 'contentImport',
content: 'import',
useCustomRemoveButton: true, // hide default remove button
@ -150,6 +150,7 @@ Ext.define('PVE.storage.Browser', {
xtype: 'proxmoxButton',
disabled: true,
text: gettext('Import'),
iconCls: 'fa fa-cloud-download',
handler: function() {
let grid = this.up('pveStorageContentView');
let selection = grid.getSelection()?.[0];