Skip to content

Commit

Permalink
fix(web): display the installation progress when connecting late (#1394)
Browse files Browse the repository at this point in the history
## Problem

If you connect when the installation has started, the software service
cannot tell ou what you are installing, hence the progress screen is not
shown.

## Solution

Until we have a responsive software service, let's omit the product's
name.
  • Loading branch information
imobachgs authored Jun 26, 2024
1 parent 55e409d commit 218adbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
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 @@
-------------------------------------------------------------------
Wed Jun 26 15:57:52 UTC 2024 - Imobach Gonzalez Sosa <[email protected]>

- Display the installation progress when connecting in the middle
of the process (gh#openSUSE/agama#1394).

-------------------------------------------------------------------
Wed Jun 26 14:17:30 UTC 2024 - David Diaz <[email protected]>

Expand Down
12 changes: 1 addition & 11 deletions web/src/components/core/InstallationProgress.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,14 @@
*/

import React from "react";
import { useProduct } from "~/context/product";
import { sprintf } from "sprintf-js";
import { _ } from "~/i18n";
import ProgressReport from "./ProgressReport";
import SimpleLayout from "~/SimpleLayout";

function InstallationProgress() {
const { selectedProduct } = useProduct();

if (!selectedProduct) {
return;
}

// TRANSLATORS: %s is replaced by a product name (e.g., openSUSE Tumbleweed)
const title = sprintf(_("Installing %s, please wait ..."), selectedProduct.name);
return (
<SimpleLayout showOutlet={false}>
<ProgressReport title={title} />
<ProgressReport title={_("Installing the system, please wait ...")} />
</SimpleLayout>
);
}
Expand Down

0 comments on commit 218adbf

Please sign in to comment.