diff options
| author | Autumn <git@autumnfo.rest> | 2026-05-16 09:17:15 +0100 |
|---|---|---|
| committer | Autumn <git@autumnfo.rest> | 2026-05-16 09:17:15 +0100 |
| commit | 3576cb2992b8b637e5325a0fa36ee1954e0bef84 (patch) | |
| tree | 9cd3e71a963614d6648e78c79dd0449b1bea237e /src/views/components | |
| parent | 14f77d413d7a1d1e7d087fdb2c201387f7c9c381 (diff) | |
[pages] added device toggling
Diffstat (limited to 'src/views/components')
| -rw-r--r-- | src/views/components/dashboard/device.pug | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views/components/dashboard/device.pug b/src/views/components/dashboard/device.pug index 099a54b..739c275 100644 --- a/src/views/components/dashboard/device.pug +++ b/src/views/components/dashboard/device.pug @@ -6,7 +6,9 @@ article.device div if device.type == "light" - button Toggle + + - let deviceFunction = `toggleDevice('${device.id}')` + button(onclick=deviceFunction) Toggle - let location = `/devices/${device.id}` a(href=location) View |
