mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
Add highlighting for fields that change with profiles
- Added field arrays for control and battery profiles. - Added highlight mechanism for **data-setting** fields - Changed battery and control profile drop down text to match the field colours.
This commit is contained in:
parent
a31aa128f1
commit
0f27abf733
4 changed files with 187 additions and 26 deletions
|
@ -12,6 +12,14 @@ var Settings = (function () {
|
|||
var settingName = input.data('setting');
|
||||
var inputUnit = input.data('unit');
|
||||
|
||||
if (FC.isBatteryProfileParameter(settingName)) {
|
||||
input.css("background-color","#fef2d5");
|
||||
}
|
||||
|
||||
if (FC.isControlProfileParameter(settingName)) {
|
||||
input.css("background-color","#d5ebfe");
|
||||
}
|
||||
|
||||
return mspHelper.getSetting(settingName).then(function (s) {
|
||||
// Check if the input declares a parent
|
||||
// to be hidden in case of the setting not being available.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue