mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Show system drives last
Change-type: patch
This commit is contained in:
parent
b32c4ee728
commit
ba16995070
@ -134,6 +134,8 @@ function storeReducer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
drives = _.sortBy(drives, [
|
drives = _.sortBy(drives, [
|
||||||
|
// System drives last
|
||||||
|
(d) => !!d.isSystem,
|
||||||
// Devices with no devicePath first (usbboot)
|
// Devices with no devicePath first (usbboot)
|
||||||
(d) => !!d.devicePath,
|
(d) => !!d.devicePath,
|
||||||
// Then sort by devicePath (only available on Linux with udev) or device
|
// Then sort by devicePath (only available on Linux with udev) or device
|
||||||
|
Loading…
x
Reference in New Issue
Block a user