1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-15 12:25:15 +03:00

Removed release notes from firmware flasher (#3083)

Co-authored-by: J Blackman <blckmn@users.noreply.github.com>
This commit is contained in:
Ivan Efimov 2022-11-14 15:59:41 -06:00 committed by GitHub
parent 4df7f5b9fb
commit 46f0bb3885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 18 deletions

View file

@ -151,9 +151,6 @@
} }
} }
} }
.notes {
padding: 5px;
}
} }
.git_info { .git_info {
display: none; display: none;

View file

@ -73,16 +73,6 @@ firmware_flasher.initialize = function (callback) {
$('div.release_info #cloudTargetInfo').hide(); $('div.release_info #cloudTargetInfo').hide();
} }
if (summary.notes) {
let formattedNotes = summary.notes.replace(/#(\d+)/g, '[#$1](https://github.com/betaflight/betaflight/pull/$1)');
formattedNotes = marked.parse(formattedNotes);
formattedNotes = DOMPurify.sanitize(formattedNotes);
$('div.release_info .notes').html(formattedNotes);
GUI.addLinksTargetBlank($('div.release_info .notes'));
} else {
$('div.release_info .notes').html('Release notes unavailable.');
}
if (self.targets) { if (self.targets) {
$('div.release_info').slideDown(); $('div.release_info').slideDown();
$('.tab-firmware_flasher .content_wrapper').animate({ scrollTop: $('div.release_info').position().top }, 1000); $('.tab-firmware_flasher .content_wrapper').animate({ scrollTop: $('div.release_info').position().top }, 1000);

View file

@ -239,7 +239,7 @@
<span class="configFilename"></span> <span class="configFilename"></span>
<br /> <br />
</div> </div>
<div class="margin-bottom" id="cloudTargetInfo"> <div id="cloudTargetInfo">
<strong i18n="firmwareFlasherCloudBuildDetails"></strong> <strong i18n="firmwareFlasherCloudBuildDetails"></strong>
<a i18n_title="firmwareFlasherCloudBuildLogUrl" id="cloudTargetLog" href="#" target="_blank"></a> <a i18n_title="firmwareFlasherCloudBuildLogUrl" id="cloudTargetLog" href="#" target="_blank"></a>
<br /> <br />
@ -248,10 +248,6 @@
<span id="cloudTargetStatus"></span> <span id="cloudTargetStatus"></span>
<br /> <br />
</div> </div>
<div class="margin-bottom">
<strong i18n="firmwareFlasherReleaseNotes"></strong>
<div class=notes></div>
</div>
</div> </div>
</div> </div>