diff --git a/CHANGELOG.md b/CHANGELOG.md index 38841c1..46574c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,16 @@ # Change Log All notable changes to this project will be documented in this file. -## [v2.0.2] - 2024-09- +## [v2.0.2] - 2024-09-07 +### Added +- Remember Refresh setting by browser + ### Fixed -- Error when `IFACES`="" +- Error when `IFACES` are empty +- Sticky sort bug fix +- Bug [#124](https://github.com/aceberg/WatchYourLAN/issues/124) +- Bug [#128](https://github.com/aceberg/WatchYourLAN/issues/128) + ## [v2.0.1] - 2024-09-02 ### Added diff --git a/internal/web/public/js/refresh.js b/internal/web/public/js/refresh.js index f70ab6a..ca55455 100644 --- a/internal/web/public/js/refresh.js +++ b/internal/web/public/js/refresh.js @@ -5,12 +5,17 @@ autoRefresh(); function toggleRefresh() { ref = !ref; + + localStorage.setItem("refAuto", ref); - autoRefresh() + autoRefresh(); } function autoRefresh() { + ref = JSON.parse(localStorage.getItem("refAuto")); + document.getElementById("ref").checked = ref; + if (ref) { const timeout = document.getElementById("ref-timeout").value; console.log("Refresh timeout", timeout); diff --git a/internal/web/templates/history.html b/internal/web/templates/history.html index 291aa80..cb9ec09 100644 --- a/internal/web/templates/history.html +++ b/internal/web/templates/history.html @@ -1,8 +1,5 @@ {{ define "history.html" }} - - -
@@ -36,6 +33,8 @@
+ + {{ template "footer.html" }} {{ end }} \ No newline at end of file diff --git a/internal/web/templates/host.html b/internal/web/templates/host.html index 5a9ebf4..6b7b291 100644 --- a/internal/web/templates/host.html +++ b/internal/web/templates/host.html @@ -1,8 +1,5 @@ {{ define "host.html" }} - - -
@@ -112,6 +109,9 @@
+ + + diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index 525516a..6b8e79b 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -1,9 +1,5 @@ {{ define "index.html" }} - - - -
@@ -68,6 +64,10 @@
+ + + + {{ template "footer.html" }} {{ end }} \ No newline at end of file