diff --git a/gui/app/public/i18n/en/translation.ftl b/gui/app/public/i18n/en/translation.ftl index b0244e2fa..871d60b9b 100644 --- a/gui/app/public/i18n/en/translation.ftl +++ b/gui/app/public/i18n/en/translation.ftl @@ -1415,6 +1415,7 @@ firmware_tool-select_source-firmware = Firmware Source firmware_tool-select_source-version = Firmware Version firmware_tool-select_source-official = Official firmware_tool-select_source-dev = Dev +firmware_tool-select_source-latest = Latest firmware_tool-select_source-not_selected = No source selected firmware_tool-select_source-no_boards = No available boards for this source firmware_tool-select_source-no_versions = No available versions for this source diff --git a/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx b/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx index 0761a5db8..e7ec9b3ec 100644 --- a/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx +++ b/gui/app/src/components/firmware-tool/steps/SelectSourceStep.tsx @@ -22,7 +22,7 @@ function Selector({ text: string; active: boolean; official?: boolean; - tag?: 'official' | 'dev'; + tag?: 'official' | 'dev' | 'latest'; disabled?: boolean; onClick: () => void; }) { @@ -64,6 +64,18 @@ function Selector({ )} + {tag === 'latest' && ( +
+ + + +
+ )} {text} ); @@ -269,7 +281,7 @@ export function SelectSourceSetep({
- {possibleVersions?.map(({ name, disabled }) => ( + {possibleVersions?.map(({ name, disabled }, i) => ( { setPartialBoard((curr) => ({