fix(connections): allow toggling HTTPS off in Add Connection dialog
Push to Main CI / build-and-package (push) Canceled after 0s
Push to Main CI / build-and-package (push) Canceled after 0s
The 'Use HTTPS' switch was disabled whenever the web client itself was served over HTTPS, making it impossible to add a plain-HTTP node. Keep the switch always interactive and instead show a mixed-content warning when HTTP is selected on an HTTPS-served page. Adds unit tests for the protocol toggle.
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
"inputPlaceholder": "192.168.1.10 or meshtastic.local",
|
||||
"heading": "URL or IP",
|
||||
"useHttps": "Use HTTPS",
|
||||
"mixedContentWarning": "This page is loaded over HTTPS. Your browser may block connections to an HTTP node.",
|
||||
"invalidUrl": {
|
||||
"title": "Invalid URL",
|
||||
"description": "Please enter a valid HTTP or HTTPS URL."
|
||||
|
||||
Reference in New Issue
Block a user