diff options
Diffstat (limited to 'frontend/src/components/settings/pages/general')
| -rw-r--r-- | frontend/src/components/settings/pages/general/BranchSelect.tsx | 15 | ||||
| -rw-r--r-- | frontend/src/components/settings/pages/general/Updater.tsx | 4 |
2 files changed, 12 insertions, 7 deletions
diff --git a/frontend/src/components/settings/pages/general/BranchSelect.tsx b/frontend/src/components/settings/pages/general/BranchSelect.tsx index 6e69208a..d51f1db8 100644 --- a/frontend/src/components/settings/pages/general/BranchSelect.tsx +++ b/frontend/src/components/settings/pages/general/BranchSelect.tsx @@ -8,10 +8,15 @@ import { useSetting } from '../../../../utils/hooks/useSetting'; const logger = new Logger('BranchSelect'); -enum UpdateBranch { +export enum UpdateBranch { + Stable, + Prerelease, + Testing, +} + +enum LessUpdateBranch { Stable, Prerelease, - // Testing, } const BranchSelect: FunctionComponent<{}> = () => { @@ -24,11 +29,11 @@ const BranchSelect: FunctionComponent<{}> = () => { const [selectedBranch, setSelectedBranch] = useSetting<UpdateBranch>('branch', UpdateBranch.Stable); return ( - // Returns numerical values from 0 to 2 (with current branch setup as of 8/28/22) - // 0 being stable, 1 being pre-release and 2 being nightly + // Returns numerical values from 0 to 2 (with current branch setup as of 6/16/23) + // 0 being stable, 1 being pre-release and 2 being testing (not a branch!) <Field label={t('BranchSelect.update_channel.label')} childrenContainerWidth={'fixed'}> <Dropdown - rgOptions={Object.values(UpdateBranch) + rgOptions={Object.values(selectedBranch == UpdateBranch.Testing ? UpdateBranch : LessUpdateBranch) .filter((branch) => typeof branch == 'number') .map((branch) => ({ label: tBranches[branch as number], diff --git a/frontend/src/components/settings/pages/general/Updater.tsx b/frontend/src/components/settings/pages/general/Updater.tsx index 01aeb4c3..45b026ca 100644 --- a/frontend/src/components/settings/pages/general/Updater.tsx +++ b/frontend/src/components/settings/pages/general/Updater.tsx @@ -136,8 +136,8 @@ export default function UpdaterSettings() { {checkingForUpdates ? t('Updater.updates.checking') : !versionInfo?.remote || versionInfo?.remote?.tag_name == versionInfo?.current - ? t('Updater.updates.check_button') - : t('Updater.updates.install_button')} + ? t('Updater.updates.check_button') + : t('Updater.updates.install_button')} </DialogButton> ) : ( <ProgressBarWithInfo |
