mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 19:40:22 +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) + "%",
|
width: (100-(FC.DATAFLASH.totalSize - FC.DATAFLASH.usedSize) / FC.DATAFLASH.totalSize * 100) + "%",
|
||||||
display: 'block'
|
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 {
|
} else {
|
||||||
$(".noflash_global").css({
|
$(".noflash_global").css({
|
||||||
display: 'block'
|
display: 'block'
|
||||||
|
|
|
@ -462,6 +462,7 @@ var SerialBackend = (function () {
|
||||||
$('#sensor-status').show();
|
$('#sensor-status').show();
|
||||||
$('#portsinput').hide();
|
$('#portsinput').hide();
|
||||||
$('#dataflash_wrapper_global').show();
|
$('#dataflash_wrapper_global').show();
|
||||||
|
$('#profiles_wrapper_global').show();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Init PIDs bank with a length that depends on the version
|
* 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);
|
interval.add('global_data_refresh', periodicStatusUpdater.run, periodicStatusUpdater.getUpdateInterval(CONFIGURATOR.connection.bitrate), false);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#profiles_wrapper_global').show();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
privateScope.onClosed = function (result) {
|
privateScope.onClosed = function (result) {
|
||||||
|
|
|
@ -5700,7 +5700,7 @@
|
||||||
"message": "No dataflash <br>chip found"
|
"message": "No dataflash <br>chip found"
|
||||||
},
|
},
|
||||||
"sensorDataFlashFreeSpace": {
|
"sensorDataFlashFreeSpace": {
|
||||||
"message": "Dataflash: free space"
|
"message": "Dataflash: <br />free "
|
||||||
},
|
},
|
||||||
"mixerProfile1": {
|
"mixerProfile1": {
|
||||||
"message": "Mixer Profile 1"
|
"message": "Mixer Profile 1"
|
||||||
|
|
|
@ -5475,7 +5475,7 @@
|
||||||
"message": "Чіп пам'яті <br>не знайдено"
|
"message": "Чіп пам'яті <br>не знайдено"
|
||||||
},
|
},
|
||||||
"sensorDataFlashFreeSpace": {
|
"sensorDataFlashFreeSpace": {
|
||||||
"message": "Доступна пам'ять"
|
"message": "Пам'ять: <br/>Доступна"
|
||||||
},
|
},
|
||||||
"mixerProfile1": {
|
"mixerProfile1": {
|
||||||
"message": "Профіль мікшера 1"
|
"message": "Профіль мікшера 1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue