mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Updated dataflash area
- Added line break to make better use of space with no overlapping of the box - Changed the JS to use i18n to get the correct text for the dataflash box
This commit is contained in:
parent
9ff375ed64
commit
aa8800719e
4 changed files with 4 additions and 6 deletions
|
@ -529,7 +529,7 @@ GUI_control.prototype.update_dataflash_global = function () {
|
|||
width: (100-(FC.DATAFLASH.totalSize - FC.DATAFLASH.usedSize) / FC.DATAFLASH.totalSize * 100) + "%",
|
||||
display: 'block'
|
||||
});
|
||||
$(".dataflash-free_global div").text('Dataflash: free ' + formatFilesize(FC.DATAFLASH.totalSize - FC.DATAFLASH.usedSize));
|
||||
$(".dataflash-free_global div").text(i18n.getMessage('sensorDataFlashFreeSpace') + formatFilesize(FC.DATAFLASH.totalSize - FC.DATAFLASH.usedSize));
|
||||
} else {
|
||||
$(".noflash_global").css({
|
||||
display: 'block'
|
||||
|
|
|
@ -462,6 +462,7 @@ var SerialBackend = (function () {
|
|||
$('#sensor-status').show();
|
||||
$('#portsinput').hide();
|
||||
$('#dataflash_wrapper_global').show();
|
||||
$('#profiles_wrapper_global').show();
|
||||
|
||||
/*
|
||||
* Init PIDs bank with a length that depends on the version
|
||||
|
@ -481,9 +482,6 @@ var SerialBackend = (function () {
|
|||
|
||||
interval.add('global_data_refresh', periodicStatusUpdater.run, periodicStatusUpdater.getUpdateInterval(CONFIGURATOR.connection.bitrate), false);
|
||||
});
|
||||
|
||||
$('#profiles_wrapper_global').show();
|
||||
|
||||
}
|
||||
|
||||
privateScope.onClosed = function (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue