Skip to content

Commit

Permalink
Merge pull request #5016 from adamkankovsky/webui-installation-langua…
Browse files Browse the repository at this point in the history
…ge-next-button-fix

webui: After returning to InstallationLanguage, the next button does not work
  • Loading branch information
adamkankovsky authored Aug 7, 2023
2 parents d70c1fc + 414f08a commit fd6dee4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/webui/src/components/AnacondaWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import {
const _ = cockpit.gettext;

export const AnacondaWizard = ({ dispatch, isBootIso, osRelease, storageData, localizationData, onAddErrorNotification, title, conf }) => {
const [isFormValid, setIsFormValid] = useState(true);
const [isFormValid, setIsFormValid] = useState(false);
const [stepNotification, setStepNotification] = useState();
const [isInProgress, setIsInProgress] = useState(false);
const [storageEncryption, setStorageEncryption] = useState(getStorageEncryptionState());
Expand Down
4 changes: 4 additions & 0 deletions ui/webui/src/components/localization/InstallationLanguage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ export const InstallationLanguage = ({ idPrefix, languages, language, commonLoca
readOsRelease().then(osRelease => setDistributionName(osRelease.NAME));
}, []);

useEffect(() => {
setIsFormValid(language !== "");
}, [language, setIsFormValid]);

return (
<AnacondaPage title={cockpit.format(_("Welcome to $0"), distributionName)}>
<Title
Expand Down

0 comments on commit fd6dee4

Please sign in to comment.