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

chore: removenested template literals

This commit is contained in:
Tomas Chmelevskij 2021-12-19 08:08:16 +01:00
parent 8cf9473c88
commit 6e6c3f76ae
3 changed files with 10 additions and 3 deletions

View file

@ -233,7 +233,8 @@ TABS.receiver.initialize = function (callback) {
rssi_channel_e.append(`<option value="0">${i18n.getMessage("receiverRssiChannelDisabledOption")}</option>`);
//1-4 reserved for Roll Pitch Yaw & Throttle, starting at 5
for (let i = 5; i < FC.RC.active_channels + 1; i++) {
rssi_channel_e.append(`<option value="${i}">${i18n.getMessage(`controlAxisAux${ i-4}`)}</option>`);
const messageKey = `controlAxisAux${i-4}`;
rssi_channel_e.append(`<option value="${i}">${i18n.getMessage(messageKey)}</option>`);
}
$('select[name="rssi_channel"]').val(FC.RSSI_CONFIG.channel);