Skip to content

Commit

Permalink
web: Fix bug getting info from http API
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed May 13, 2024
1 parent eb3b3b4 commit f90f944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/client/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class DevicesManager {
/** @type {(device: StorageDevice, info: object) => void} */
const addPartitionInfo = (device, info) => {
device.type = "partition";
device.isEFI = info.EFI;
device.isEFI = info.efi;
};

/** @type {(device: StorageDevice, info: object) => void} */
Expand Down
8 changes: 4 additions & 4 deletions web/src/client/storage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const sda1 = {
systems : [],
udevIds: [],
udevPaths: [],
isEFI: false
isEFI: true
};

/** @type {StorageDevice} */
Expand Down Expand Up @@ -704,7 +704,7 @@ const contexts = {
name: "/dev/sda1",
description: ""
},
partition: { EFI: false },
partition: { efi: true },
blockDevice: {
active: true,
encrypted: false,
Expand All @@ -727,7 +727,7 @@ const contexts = {
name: "/dev/sda2",
description: ""
},
partition: { EFI: false },
partition: { efi: false },
blockDevice: {
active: true,
encrypted: false,
Expand Down Expand Up @@ -1049,7 +1049,7 @@ const contexts = {
name: "/dev/sdf1",
description: "PV of vg0"
},
partition: { EFI: false },
partition: { efi: false },
blockDevice: {
active: true,
encrypted: true,
Expand Down

0 comments on commit f90f944

Please sign in to comment.