[pve-devel] [PATCH manager v16 10/12] ui: add resource mapping view for directories
Filip Schauer
f.schauer at proxmox.com
Mon Apr 7 11:51:26 CEST 2025
On 04/04/2025 18:08, Markus Frank wrote:
> diff --git a/www/manager6/dc/Config.js b/www/manager6/dc/Config.js
> index 74728c83..2958fb88 100644
> --- a/www/manager6/dc/Config.js
> +++ b/www/manager6/dc/Config.js
> @@ -329,6 +329,16 @@ Ext.define('PVE.dc.Config', {
> title: gettext('USB Devices'),
> flex: 1,
> },
> + {
> + xtype: 'splitter',
> + collapsible: false,
> + performCollapse: false,
> + },
> + {
> + xtype: 'pveDcDirMapView',
> + title: gettext('Directories'),
> + flex: 1,
> + },
> ],
> },
> );
Using a tabpanel here would reduce clutter on smaller screens.
me.items.push(
{
- xtype: 'container',
+ xtype: 'tabpanel',
onlineHelp: 'resource_mapping',
title: gettext('Resource Mappings'),
itemId: 'resources',
iconCls: 'fa fa-folder-o',
- layout: {
- type: 'vbox',
- align: 'stretch',
- multi: true,
- },
- scrollable: true,
- defaults: {
- border: false,
- },
items: [
{
xtype: 'pveDcPCIMapView',
title: gettext('PCI Devices'),
- flex: 1,
- },
- {
- xtype: 'splitter',
- collapsible: false,
- performCollapse: false,
+ itemId: 'pci-map',
},
{
xtype: 'pveDcUSBMapView',
title: gettext('USB Devices'),
- flex: 1,
- },
- {
- xtype: 'splitter',
- collapsible: false,
- performCollapse: false,
+ itemId: 'usb-map',
},
{
xtype: 'pveDcDirMapView',
title: gettext('Directories'),
- flex: 1,
+ itemId: 'dir-map',
},
],
},
More information about the pve-devel
mailing list