firmware: add select picker for selecting custom main.py

This commit is contained in:
David Lechner
2022-07-20 14:25:40 -05:00
parent 85deb42f76
commit af8a31d50c
10 changed files with 150 additions and 41 deletions
@@ -8,7 +8,12 @@ export const firmwareInstallPybricksDialogShow = createAction(() => ({
type: 'firmware.installPybricksDialog.action.show',
}));
/** Actions that indicates the user accepted the install Pybricks firmware dialog. */
/**
* Action that indicates the user accepted the install Pybricks firmware dialog.
* @param firmwareZip The firmware.zip raw data.
* @param customProgram Optional path of custom program to include when flashing firmware.
* @param hubName The hub name to use when flashing firmware.
*/
export const firmwareInstallPybricksDialogAccept = createAction(
(firmwareZip: ArrayBuffer, customProgram: string | undefined, hubName: string) => ({
type: 'firmware.installPybricksDialog.action.accept',