-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Firmware/Download to Setup tab, add ':', formatting (#4444) #4450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -212,6 +212,7 @@ setup.initialize = function (callback) { | |
| build_date_e = $(".build-date"), | ||
| build_type_e = $(".build-type"), | ||
| build_info_e = $(".build-info"), | ||
| build_firmware_e = $(".build-firmware"), | ||
| build_options_e = $(".build-options"); | ||
|
|
||
| // DISARM FLAGS | ||
|
|
@@ -369,29 +370,39 @@ setup.initialize = function (callback) { | |
|
|
||
| if (supported && ispConnected()) { | ||
| const buildRoot = `https://build.betaflight.com/api/builds/${FC.CONFIG.buildKey}`; | ||
|
|
||
haslinghuis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| const buildConfig = `<span class="buildInfoBtn" title="${i18n.getMessage( | ||
| "initialSetupInfoBuildConfig", | ||
| )}: ${buildRoot}/json"> | ||
| <a href="${buildRoot}/json" target="_blank"><strong>${i18n.getMessage( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ask me how much I like prettier some day... ;) |
||
| <a href="${buildRoot}/json" target="_blank"><strong>${i18n.getMessage( | ||
| "initialSetupInfoBuildConfig", | ||
| )}</strong></a></span>`; | ||
|
|
||
| const buildLog = `<span class="buildInfoBtn" title="${i18n.getMessage( | ||
| "initialSetupInfoBuildLog", | ||
| )}: ${buildRoot}/log"> | ||
| <a href="${buildRoot}/log" target="_blank"><strong>${i18n.getMessage( | ||
| <a href="${buildRoot}/log" target="_blank"><strong>${i18n.getMessage( | ||
| "initialSetupInfoBuildLog", | ||
| )}</strong></a></span>`; | ||
| build_info_e.html(`<span class="buildInfoBtn" title="${i18n.getMessage( | ||
haslinghuis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "initialSetupInfoBuildOptions", | ||
| )}"> | ||
| <a class="buildOptions" href=#"><strong>${i18n.getMessage( | ||
| "initialSetupInfoBuildOptionList", | ||
| )}</strong></a></span>`); | ||
|
|
||
| build_info_e.html(`${buildConfig} ${buildLog}`); | ||
|
|
||
| const buildDownload = `<span class="buildInfoBtn" title="${i18n.getMessage( | ||
| "initialSetupInfoBuildDownload", | ||
| )}: ${buildRoot}/hex"> | ||
| <a href="${buildRoot}/hex" target="_blank"><strong>${i18n.getMessage( | ||
| "initialSetupInfoBuildDownload", | ||
| )}</strong></a></span>`; | ||
|
|
||
| build_firmware_e.html(buildDownload); | ||
| } else { | ||
| build_info_e.html( | ||
| supported ? i18n.getMessage("initialSetupNotOnline") : i18n.getMessage("initialSetupNoBuildInfo"), | ||
| ); | ||
|
|
||
| build_firmware_e.html( | ||
| supported ? i18n.getMessage("initialSetupNotOnline") : i18n.getMessage("initialSetupNoBuildInfo"), | ||
|
||
| ); | ||
| } | ||
| }; | ||
|
|
||
|
|
@@ -418,7 +429,7 @@ setup.initialize = function (callback) { | |
| const buildOptions = `<span class="buildInfoBtn" title="${i18n.getMessage( | ||
| "initialSetupInfoBuildOptionList", | ||
| )}"> | ||
| <a class="buildOptions" href=#"><strong>${i18n.getMessage( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pure consistency change, this matches the formatting 7 lines above. I think prettier should have made this itself. |
||
| <a class="buildOptions" href=#"><strong>${i18n.getMessage( | ||
| "initialSetupInfoBuildOptions", | ||
| )}</strong></a></span>`; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no standard I saw for label vs. content, so I appended "Label" here because the plain "Options" string is used elsewhere.