mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
gui: Also blacklist match against device & raw path
This fixes device blacklist handling to also match against `drive.device` and `drive.raw`, in order to be able to specify devices lacking a `devicePath`. Change-type: patch Signed-off-by: Jonas Hermsmeier <jhermsmeier@gmail.com>
This commit is contained in:
parent
6c73ddcaca
commit
0d80957639
@ -242,7 +242,9 @@ app.run(($timeout) => {
|
||||
$timeout(() => {
|
||||
if (BLACKLISTED_DRIVES.length) {
|
||||
const allowedDrives = drives.filter((drive) => {
|
||||
return !BLACKLISTED_DRIVES.includes(drive.devicePath)
|
||||
return !(BLACKLISTED_DRIVES.includes(drive.devicePath) ||
|
||||
BLACKLISTED_DRIVES.includes(drive.device) ||
|
||||
BLACKLISTED_DRIVES.includes(drive.raw))
|
||||
})
|
||||
availableDrives.setDrives(allowedDrives)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user