mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-05 09:17:59 +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',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/localhost/disks/list?skipsmart=1&include-partitions=1",
|
url: "/api2/json/nodes/localhost/disks/list?skipsmart=1&include-partitions=1",
|
||||||
reader: {
|
reader: {
|
||||||
transform: (rawData) => rawData.data
|
transform: ({ data }) => data
|
||||||
.flatMap(disk => (disk.partitions
|
.flatMap(disk =>
|
||||||
.map(part => ({ ...part, model: disk.model })) ?? [])
|
(disk.partitions.map(part => ({ ...part, model: disk.model })) ?? [])
|
||||||
.filter(partition => partition.used === 'filesystem' && !!partition.uuid)),
|
.filter(partition => partition.used === 'filesystem' && !!partition.uuid),
|
||||||
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
idProperty: 'devpath',
|
idProperty: 'devpath',
|
||||||
|
Loading…
Reference in New Issue
Block a user