mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Move some code of portOverride from serial_backend to vue (#3992)
This commit is contained in:
parent
d0599ae455
commit
324bec63a2
4 changed files with 17 additions and 18 deletions
|
@ -54,17 +54,6 @@ function disconnectHandler(event) {
|
|||
|
||||
export function initializeSerialBackend() {
|
||||
|
||||
// TODO move to Vue
|
||||
$('#port-override').change(function () {
|
||||
setConfig({'portOverride': $('#port-override').val()});
|
||||
});
|
||||
|
||||
// TODO move to Vue
|
||||
const data = getConfig('portOverride');
|
||||
if (data.portOverride) {
|
||||
$('#port-override').val(data.portOverride);
|
||||
}
|
||||
|
||||
$("div.connect_controls a.connect").on('click', connectDisconnect);
|
||||
|
||||
EventBus.$on('port-handler:auto-select-serial-device', function(device) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue