Skip to content

Commit

Permalink
Notify users that firmware binary file was opened in the file explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgelenas committed Feb 18, 2021
1 parent ea21ddc commit 55bd65e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/ui/views/ConfiguratorView/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { FunctionComponent, useEffect, useRef, useState } from 'react';
import {
Alert,
AlertTitle,
Button,
Card,
CardContent,
Expand Down Expand Up @@ -95,6 +97,9 @@ const useStyles = makeStyles((theme) => ({
longBuildDurationWarning: {
marginBottom: theme.spacing(1),
},
buildResponse: {
marginBottom: theme.spacing(1),
},
}));

enum ViewState {
Expand Down Expand Up @@ -511,7 +516,18 @@ const ConfiguratorView: FunctionComponent = () => {
<CardTitle icon={<SettingsIcon />} title="Result" />
<Divider />
<CardContent>
<BuildResponse response={response?.buildFlashFirmware} />
<div className={styles.buildResponse}>
<BuildResponse response={response?.buildFlashFirmware} />
</div>
{response?.buildFlashFirmware?.success &&
currentJobType === BuildJobType.Build && (
<>
<Alert severity="info">
<AlertTitle>Build notice</AlertTitle>
Firmware binary file was opened in the file explorer
</Alert>
</>
)}
</CardContent>
<Divider />
</>
Expand Down

0 comments on commit 55bd65e

Please sign in to comment.