mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Report logic condiotion activation status
This commit is contained in:
parent
e3b89453e8
commit
9c627f7445
9 changed files with 109 additions and 1 deletions
|
@ -191,6 +191,22 @@ let LogicCondition = function (enabled, operation, operandAType, operandAValue,
|
|||
}
|
||||
}
|
||||
|
||||
self.update = function (index, value, $container) {
|
||||
if (typeof $row === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
let $marker = $row.find('.logic_cell__active_marker');
|
||||
|
||||
if (!!value) {
|
||||
$marker.addClass("logic_cell__active_marker--active");
|
||||
$marker.removeClass("logic_cell__active_marker--inactive");
|
||||
} else {
|
||||
$marker.removeClass("logic_cell__active_marker--active");
|
||||
$marker.addClass("logic_cell__active_marker--inactive");
|
||||
}
|
||||
}
|
||||
|
||||
self.render = function (index, $container) {
|
||||
|
||||
$container.find('tbody').append('<tr>\
|
||||
|
@ -199,7 +215,7 @@ let LogicCondition = function (enabled, operation, operandAType, operandAValue,
|
|||
<td class="logic_cell__operation"></td>\
|
||||
<td class="logic_cell__operandA"></td>\
|
||||
<td class="logic_cell__operandB"></td>\
|
||||
<td class="logic_cell__flags"></td>\
|
||||
<td class="logic_cell__flags"><div class="logic_cell__active_marker"></div></td>\
|
||||
</tr>\
|
||||
');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue