diff --git a/gui/public/i18n/en/translation.ftl b/gui/public/i18n/en/translation.ftl index 30754f16f..914783abe 100644 --- a/gui/public/i18n/en/translation.ftl +++ b/gui/public/i18n/en/translation.ftl @@ -1399,6 +1399,9 @@ 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-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 firmware_tool-board_defaults = Configure your board firmware_tool-board_defaults-description = Set the pins or settings relative to your hardware diff --git a/gui/src/components/firmware-tool/steps/SelectSourceStep.tsx b/gui/src/components/firmware-tool/steps/SelectSourceStep.tsx index e15e6d761..18410bf76 100644 --- a/gui/src/components/firmware-tool/steps/SelectSourceStep.tsx +++ b/gui/src/components/firmware-tool/steps/SelectSourceStep.tsx @@ -101,13 +101,10 @@ export function SelectSourceSetep({ curr.push({ name: source.source, official: source.official, - disabled: - !partialBoard?.board || - !source.availableBoards.includes(partialBoard.board), }); return curr; }, - [] as { name: string; official: boolean; disabled: boolean }[] + [] as { name: string; official: boolean }[] ) .sort((a, b) => { if (a.official !== b.official) return a.official ? -1 : 1; @@ -115,6 +112,7 @@ export function SelectSourceSetep({ }), possibleBoards: sources ?.reduce((curr, source) => { + if (source.source !== partialBoard?.source) return curr; const unknownBoards = source.availableBoards.filter( (b) => !curr.includes(b) ); @@ -136,6 +134,7 @@ export function SelectSourceSetep({ possibleVersions: sources ?.reduce( (curr, source) => { + if (source.source !== partialBoard?.source) return curr; if (!curr.find(({ name }) => source.version === name)) curr.push({ disabled: @@ -193,6 +192,25 @@ export function SelectSourceSetep({ {!isFetching && !isError && (