Skip to content

Commit

Permalink
Merge pull request #588 from L1cardo/add-flash-again-button
Browse files Browse the repository at this point in the history
add "Flash again" button for massive flashing
  • Loading branch information
jurgelenas authored Apr 1, 2024
2 parents 646f4a9 + d84d955 commit a7e5808
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
"BuildNotice": "Build notice",
"FirmwareOpenedInFileExplorer": "Firmware binary file was opened in the file explorer",
"Back": "Back",
"FlashAnother": "Flash another",
"Retry": "Retry"
},
"LogsView": {
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh-CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
"BuildNotice": "编译通知",
"FirmwareOpenedInFileExplorer": "固件二进制文件已在文件资源管理器中打开",
"Back": "返回",
"FlashAnother": "刷写另一个",
"Retry": "重试"
},
"LogsView": {
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
"BuildNotice": "编译通知",
"FirmwareOpenedInFileExplorer": "固件二进制文件已在文件资源管理器中打开",
"Back": "返回",
"FlashAnother": "刷写另一个",
"Retry": "重试"
},
"LogsView": {
Expand Down
12 changes: 12 additions & 0 deletions src/ui/views/ConfiguratorView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,18 @@ const ConfiguratorView: FunctionComponent<ConfiguratorViewProps> = (props) => {
{t('ConfiguratorView.Back')}
</Button>

{response?.buildFlashFirmware.success && (
<Button
sx={styles.button}
color="primary"
size="large"
variant="contained"
onClick={onFlash}
>
{t('ConfiguratorView.FlashAnother')}
</Button>
)}

{!response?.buildFlashFirmware.success && (
<Button
sx={styles.button}
Expand Down

0 comments on commit a7e5808

Please sign in to comment.