{
- this.state.packages.map((package_name, i) => {
- return (
+ this.state.packages.map((package_name, i) =>
this.deletePackage(
i)}
label={package_name}
/>
- );
- })
+ )
}
Use comma or new line separated array.
Press enter to apply.}>
@@ -581,8 +616,11 @@ class Home extends React.Component {
{this.props.t('Cancel')}
+
+
Building image
+
{
this.state.queuePosition !== -1 && (
(Position in queue: {this.state.queuePosition})
@@ -651,17 +689,27 @@ class Home extends React.Component {
cancelHandler={this.closeConfirmBuildDialog}
acceptHandler={this.buildImage}
open={this.confirmingBuild}
- text={this.props.t(
- 'Building image requires computation resources, so we would request you to check if this selection is what you want')}
+ body={
+ <>
+ {this.props.t('Building image requires computation resources, so we would request you to check if this selection is what you want')}
+ >
+ }
title={this.props.t(
'Please confirm that you want to perform this action')}
cancelComponent={this.props.t('Cancel')}
acceptComponent={
- <>
- {this.props.t('Build')}
- >
+ <>
+ {this.props.t('Build')}
+ >
}
/>
+
{this.state.devicesLoaded ? onLoad : notLoaded}
diff --git a/src/containers/home/home.scss b/src/containers/home/home.scss
index 1f09e5e..25ec0d9 100644
--- a/src/containers/home/home.scss
+++ b/src/containers/home/home.scss
@@ -2,6 +2,7 @@ $bg-color: #f0f0f0;
.home-container {
margin-top: 30px;
+ margin-bottom: 100px;
.home-container-paper {
padding: 30px;
@@ -76,7 +77,7 @@ $bg-color: #f0f0f0;
}
.download-button {
- margin-top: 10px;
+ margin-top: 17px;
.download-icon {
margin-right: 10px;
diff --git a/src/locales/de.json b/src/locales/de.json
index b5b942b..6bb6da7 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -22,6 +22,8 @@
"OpenWrt Firmware Selector Wizard": "OpenWrt Firmware Selector Wizard",
"Download OpenWrt firmware for your device!": "Laden Sie die OpenWrt-Firmware für Ihr Gerät herunter!",
"Target": "Ziel",
+ "Dismiss": "Entlassen",
+ "There is an error with the packages you selected": "Bei den ausgewählten Paketen ist ein Fehler aufgetreten",
"Downloads": "Herunterladen",
"Please use the input below to download firmware for your device!": "Bitte benutzen Sie den unten stehenden Eingang, um die Firmware für Ihr Gerät herunterzuladen!"
}
diff --git a/src/locales/en.json b/src/locales/en.json
index 4a72133..c861fc6 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -22,6 +22,8 @@
"OpenWrt Firmware Selector Wizard": "OpenWrt Firmware Selector Wizard",
"Download OpenWrt firmware for your device!": "Download OpenWrt firmware for your device!",
"Target": "Target",
+ "Dismiss": "Dismiss",
+ "There is an error with the packages you selected": "There is an error with the packages you selected",
"Downloads": "Downloads",
"Please use the input below to download firmware for your device!": "Please use the input below to download firmware for your device!"
}
diff --git a/src/services/data.js b/src/services/data.js
index 58609fd..0f8e469 100644
--- a/src/services/data.js
+++ b/src/services/data.js
@@ -13,17 +13,15 @@ class DataService {
getDevicePackages = (version, target, profile) => axios.get(base_api + 'packages_image?distro=openwrt&version=' + version.toLowerCase() + '&target=' + target + '&profile=' + profile.toLowerCase());
- buildImage = (board, packages, target, version) => {
- return axios.post(base_api + 'build-request', {
- profile: board,
- board,
- defaults: '',
- distro: 'openwrt',
- packages,
- target,
- version,
- });
- };
+ buildImage = (board, packages, target, version) => axios.post(base_api + 'build-request', {
+ profile: board,
+ board,
+ defaults: '',
+ distro: 'openwrt',
+ packages,
+ target,
+ version,
+ });
buildStatusCheck = (request_hash) => axios.get(base_api + 'build-request/' + request_hash);