mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-03 01:18:02 +03:00
ui: partition selector: clean-up indentation of model transform arrow-fn
not good yet but better... Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
54308a12b3
commit
eb21f639f2
@ -5,10 +5,11 @@ Ext.define('pbs-partition-list', {
|
||||
type: 'proxmox',
|
||||
url: "/api2/json/nodes/localhost/disks/list?skipsmart=1&include-partitions=1",
|
||||
reader: {
|
||||
transform: (rawData) => rawData.data
|
||||
.flatMap(disk => (disk.partitions
|
||||
.map(part => ({ ...part, model: disk.model })) ?? [])
|
||||
.filter(partition => partition.used === 'filesystem' && !!partition.uuid)),
|
||||
transform: ({ data }) => data
|
||||
.flatMap(disk =>
|
||||
(disk.partitions.map(part => ({ ...part, model: disk.model })) ?? [])
|
||||
.filter(partition => partition.used === 'filesystem' && !!partition.uuid),
|
||||
),
|
||||
},
|
||||
},
|
||||
idProperty: 'devpath',
|
||||
|
Loading…
Reference in New Issue
Block a user