Skip to content

Commit

Permalink
Add Date and time screen
Browse files Browse the repository at this point in the history
Add a date time screen to the Web UI.

This screen makes it possible to both observe & set date and time as
well ass related values.
  • Loading branch information
M4rtinK committed Jun 22, 2023
1 parent 011d794 commit ab6e075
Show file tree
Hide file tree
Showing 4 changed files with 537 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/webui/src/components/AnacondaWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { InstallationDestination, applyDefaultStorage } from "./storage/Installa
import { StorageConfiguration, getScenario, getDefaultScenario } from "./storage/StorageConfiguration.jsx";
import { DiskEncryption, StorageEncryptionState } from "./storage/DiskEncryption.jsx";
import { InstallationLanguage } from "./localization/InstallationLanguage.jsx";
import { DateAndTime } from "./time/DateAndTime.jsx";
import { InstallationProgress } from "./installation/InstallationProgress.jsx";
import { ReviewConfiguration, ReviewConfigurationConfirmModal } from "./review/ReviewConfiguration.jsx";
import { exitGui } from "../helpers/exit.js";
Expand All @@ -58,8 +59,14 @@ export const AnacondaWizard = ({ onAddErrorNotification, toggleContextHelp, hide
id: "installation-language",
label: _("Welcome"),
},
// TODO: rename InstallationDestination component and its file ?
{
component: DateAndTime,
id: "date-and-time",
label: _("Date and time"),
},
{
component: InstallationDestination,
// TODO: rename InstallationDestination component and its file ?
id: "installation-destination",
label: _("Installation destination"),
steps: [{
Expand Down
2 changes: 2 additions & 0 deletions ui/webui/src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { HelpDrawer } from "./HelpDrawer.jsx";
import { BossClient } from "../apis/boss.js";
import { LocalizationClient } from "../apis/localization.js";
import { StorageClient } from "../apis/storage.js";
import { TimezoneClient } from "../apis/timezone.js";
import { PayloadsClient } from "../apis/payloads";

import { readBuildstamp, getIsFinal } from "../helpers/betanag.js";
Expand All @@ -52,6 +53,7 @@ export const Application = () => {
const clients = [
new LocalizationClient(address),
new StorageClient(address),
new TimezoneClient(address),
new PayloadsClient(address),
new BossClient(address)
];
Expand Down
Loading

0 comments on commit ab6e075

Please sign in to comment.