feat(xo-web/VM/disks): sort disks by device by default (#5165)

Fixes #5163
This commit is contained in:
Pierre Donias 2020-07-23 09:53:07 +02:00 committed by GitHub
parent 0740630e05
commit 43aa0b815d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- Log the `Invalid XML-RPC message` error as an unexpected response (PR [#5138](https://github.com/vatesfr/xen-orchestra/pull/5138))
- [VM/disks] By default, sort disks by their device position instead of their name [#5163](https://github.com/vatesfr/xen-orchestra/issues/5163) (PR [#5165](https://github.com/vatesfr/xen-orchestra/pull/5165))
### Bug fixes
@ -32,4 +33,4 @@
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-web patch
- xo-web minor

View File

@ -113,7 +113,6 @@ const COLUMNS_VM_PV = [
),
name: _('vdiNameLabel'),
sortCriteria: 'vdi.name_label',
default: true,
},
{
itemRenderer: ({ vdi }) => (
@ -141,9 +140,10 @@ const COLUMNS_VM_PV = [
sortCriteria: ({ vdiSr }) => vdiSr !== undefined && vdiSr.name_label,
},
{
default: true,
itemRenderer: vbd => <span>{vbd.device}</span>,
name: _('vbdDevice'),
sortCriteria: 'device',
sortCriteria: vbd => +vbd.position,
},
{
itemRenderer: vbd => (