firmware/installPybricksDialog: add bootloader discrimination

Also fix license not showing for newer hubs.
This commit is contained in:
David Lechner
2022-07-20 18:51:45 -05:00
parent 709c3c554b
commit bb6f86ff18
5 changed files with 43 additions and 5 deletions
@@ -28,6 +28,7 @@ import { appName } from '../../app/constants';
import HelpButton from '../../components/HelpButton';
import {
Hub,
hubBootloaderType,
hubHasBluetoothButton,
hubHasExternalFlash,
hubHasUSB,
@@ -426,6 +427,7 @@ export const InstallPybricksDialog: React.VoidFunctionComponent = () => {
onClick: () =>
dispatch(
firmwareInstallPybricksDialogAccept(
hubBootloaderType(hubType),
data?.firmwareZip ?? new ArrayBuffer(0),
selectedIncludeFile?.path,
hubName,