split device port into local and remote ports

This commit is contained in:
sparks-alec
2023-01-26 02:21:05 -05:00
parent 1d029058a9
commit 333d1c09e9
17 changed files with 95 additions and 47 deletions
+6 -1
View File
@@ -59,6 +59,11 @@ window.init = function init() {
DEVICE.changeActivePort(e.target.value);
};
document.getElementById('device-settings-rx-port').onchange = function portChange(e) {
e.stopPropagation();
DEVICE.changeActiveRxPort(e.target.value);
};
document.getElementById('device-settings-pin').onchange = function pinChange(e) {
e.stopPropagation();
if (e.target.checked) {
@@ -99,7 +104,7 @@ window.init = function init() {
{
type: e.target.value,
defaultName: 'New Device',
port: undefined,
remotePort: PLUGINS.all[e.target.value].config.remotePort || '',
addresses: [],
},
'fromAddButton'