diff --git a/docs/modules/ROOT/pages/args/templates.adoc b/docs/modules/ROOT/pages/args/templates.adoc index 6f99513..daeb7ee 100644 --- a/docs/modules/ROOT/pages/args/templates.adoc +++ b/docs/modules/ROOT/pages/args/templates.adoc @@ -21,7 +21,7 @@ The `Json` template function encodes a value as a JSON string. Pipe a template v ---- actions: - title: curl my knx thing - shell: curl --json https://knx.example.com/v1/group/global_on/write -d '{{ .Arguments | Json }}' + shell: curl --json '{{ .Arguments | Json }}' https://knx.example.com/v1/group/global_on/write entity: light arguments: - name: value diff --git a/frontend/resources/vue/router.js b/frontend/resources/vue/router.js index 604ffca..7710716 100644 --- a/frontend/resources/vue/router.js +++ b/frontend/resources/vue/router.js @@ -174,7 +174,7 @@ router.beforeEach((to) => { // Navigation guard for authentication (if needed) router.beforeEach((to) => { - const isAuthenticated = window.isAuthenticated || true // Default to true for now + const isAuthenticated = window.isAuthenticated ?? false if (to.meta.requiresAuth && !isAuthenticated) { return '/login' diff --git a/frontend/resources/vue/views/LogsListView.vue b/frontend/resources/vue/views/LogsListView.vue index 563697b..675d2ca 100644 --- a/frontend/resources/vue/views/LogsListView.vue +++ b/frontend/resources/vue/views/LogsListView.vue @@ -281,13 +281,6 @@ onUnmounted(() => { fetchTimer = null } }) - -onUnmounted(() => { - if (fetchTimer) { - clearTimeout(fetchTimer) - fetchTimer = null - } -})