Wizard: move RHEL 9 beta out of preview
This commit is contained in:
parent
c9e5f9630b
commit
15a7115eec
1 changed files with 0 additions and 7 deletions
|
|
@ -25,7 +25,6 @@ import {
|
||||||
} from '../../../../store/wizardSlice';
|
} from '../../../../store/wizardSlice';
|
||||||
import isRhel from '../../../../Utilities/isRhel';
|
import isRhel from '../../../../Utilities/isRhel';
|
||||||
import { toMonthAndYear } from '../../../../Utilities/time';
|
import { toMonthAndYear } from '../../../../Utilities/time';
|
||||||
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
|
|
||||||
|
|
||||||
const ReleaseSelect = () => {
|
const ReleaseSelect = () => {
|
||||||
// What the UI refers to as the "release" is referred to as the "distribution" in the API.
|
// What the UI refers to as the "release" is referred to as the "distribution" in the API.
|
||||||
|
|
@ -35,7 +34,6 @@ const ReleaseSelect = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
const [showDevelopmentOptions, setShowDevelopmentOptions] = useState(false);
|
const [showDevelopmentOptions, setShowDevelopmentOptions] = useState(false);
|
||||||
const { isBeta } = useGetEnvironment();
|
|
||||||
|
|
||||||
const handleSelect = (_event: React.MouseEvent, selection: Distributions) => {
|
const handleSelect = (_event: React.MouseEvent, selection: Distributions) => {
|
||||||
dispatch(changeDistribution(selection));
|
dispatch(changeDistribution(selection));
|
||||||
|
|
@ -82,11 +80,6 @@ const ReleaseSelect = () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
filteredRhel.forEach((value, key) => {
|
filteredRhel.forEach((value, key) => {
|
||||||
// Only show RHEL 9 beta in preview
|
|
||||||
if (key === RHEL_9_BETA && !isBeta()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
options.push(
|
options.push(
|
||||||
<SelectOption
|
<SelectOption
|
||||||
key={value}
|
key={value}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue