Skip to content

Commit

Permalink
fix(web): do not lost Storage title in overview (#1402)
Browse files Browse the repository at this point in the history
## Problem

The Overview section is missing the `Storage` title under certain
circumstances, see #1401


## Solution

Properly wrap the returned text within the internal `Content` component
at overview/StorageSection.

---------

Co-authored-by: Imobach González Sosa <[email protected]>
  • Loading branch information
dgdavid and imobachgs authored Jun 27, 2024
1 parent f5e867a commit ddfedf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions web/package/agama-web-ui.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 27 12:05:19 UTC 2024 - David Diaz <[email protected]>

- Do not lose the storage title in the overview
(gh#openSUSE/agama#1402).

-------------------------------------------------------------------
Wed Jun 26 16:46:58 UTC 2024 - David Diaz <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/overview/StorageSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default function StorageSection() {
const pvDevices = result.settings.targetPVDevices;

if (pvDevices.length > 1) {
return <span>{msgLvmMultipleDisks(result.settings.spacePolicy)}</span>;
return <Content><span>{msgLvmMultipleDisks(result.settings.spacePolicy)}</span></Content>;
} else {
const [msg1, msg2] = msgLvmSingleDisk(result.settings.spacePolicy).split("%s");

Expand Down

0 comments on commit ddfedf4

Please sign in to comment.