Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Dec 16, 2023
1 parent 7297e1d commit 787cd90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3387,8 +3387,8 @@
"firmwareFlasherReleaseTarget": {
"message": "Target:"
},
"firmwareFlasherTargetSupportUrlInfo": {
"message": "Get more information about target at Betaflight support",
"firmwareFlasherTargetWikiUrlInfo": {
"message": "Get more information about the target on the Betaflight Wiki",
"description": "Link to Betaflight support for target"
},
"firmwareFlasherReleaseMCU": {
Expand Down Expand Up @@ -7364,7 +7364,7 @@
"description": "Text for the option to enable automatic opening of DevTools in debug mode"
},
"betaflightSupportButton": {
"message": "Support",
"message": "Wiki",
"description": "Text for the button to open the support URL"
}
}
2 changes: 0 additions & 2 deletions src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,13 +927,11 @@ firmware_flasher.initialize = function (callback) {
const targetSupportInfo = $('#targetSupportInfoUrl');

targetSupportInfo.on('click', function() {
console.log('Support URL clicked:', self.selectedBoard);
let urlSupport = 'https://betaflight.com/docs/wiki/boards/missing'; // general board missing
const urlBoard = `https://betaflight.com/docs/wiki/boards/${self.selectedBoard}`; // board description
if (urlExists(urlBoard)) {
urlSupport = urlBoard;
}
console.log('Support URL:', urlSupport);
targetSupportInfo.attr("href", urlSupport);
});

Expand Down

0 comments on commit 787cd90

Please sign in to comment.