Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): display the installation progress when connecting late #1394

Merged
merged 3 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading