Skip to content

Commit

Permalink
storage: Hide mount point mapping scenario when no mountable partitio…
Browse files Browse the repository at this point in the history
…ns are available

After consulting with our designer, we opted to completely hide the mount point mapping scenario
when no mountable partitions are present, rather than simply disabling it.
This change helps reduce UI clutter and provides a cleaner, more intuitive experience.
By removing an unusable option from view, we aim to prevent confusion for users, particularly those
less experienced, who might otherwise encounter a scenario they cannot interact with.
  • Loading branch information
KKoukiou committed Oct 29, 2024
1 parent 5869d4c commit 19d33ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/storage/InstallationScenario.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ const checkMountPointMapping = ({ mountPointConstraints, selectedDisks, usablePa
.filter(device => device.formatData.mountable.v || device.formatData.type.v === "luks").length > 0;

if (!hasFilesystems) {
availability.available = false;
availability.reason = _("No usable devices on the selected disks.");
// No usable devices on the selected disks: hide the scenario to reduce UI clutter
availability.hidden = true;
} else if (missingNMParts.length) {
availability.available = false;
availability.reason = cockpit.format(_("Some required partitions are missing: $0"), missingNMParts.join(", "));
Expand Down

0 comments on commit 19d33ea

Please sign in to comment.