mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-06 14:23:40 +00:00
add device config to disable changing local port
This commit is contained in:
@@ -184,6 +184,12 @@ function switchDevice(id) {
|
||||
document.getElementById('device-settings-rx-port').disabled = true;
|
||||
}
|
||||
|
||||
if (activeDevice.plugin.config.mayChangeLocalPort === false) {
|
||||
document.getElementById('device-settings-rx-port').disabled = true;
|
||||
} else {
|
||||
document.getElementById('device-settings-rx-port').disabled = false;
|
||||
}
|
||||
|
||||
if (activeDevice.plugin.config.localPort) {
|
||||
// document.getElementById('device-settings-port-label').textContent = 'Remote\nPort:';
|
||||
document.getElementById('device-settings-rx-port-row').style.display = 'table-row';
|
||||
|
||||
Reference in New Issue
Block a user