diff options
Diffstat (limited to 'src/views/components/dashboard')
| -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 |
