esphome / dashboard

ESPHome dashboard and ESPHome Web
https://web.esphome.io
MIT License
75 stars 56 forks source link

Add url to the editor #640

Closed armantaherian closed 3 months ago

armantaherian commented 3 months ago

This PR adds a ?edit=filename.yaml search query to the page URL. This allows users to navigate back and forth between pages and keeping the editor open. Additionally, refreshing the page will open the editor and each file has its own specific URL based on filename.yaml.

Additionally, this change lays the groundwork for future implementation of an unsaved changes alert that will be triggered when a user attempts to close the browser tab or refresh the page while there are unsaved modifications in the editor.