diff --git a/src/components/TopCornerMenu.vue b/src/components/TopCornerMenu.vue
index f4bdb978..c1557b38 100644
--- a/src/components/TopCornerMenu.vue
+++ b/src/components/TopCornerMenu.vue
@@ -28,6 +28,9 @@
mdi-restartMoonraker
+
+ mdi-restartWebcam
+
Power Devices
@@ -70,6 +73,11 @@ export default {
return this.$store.getters["server/power/count"]
}
},
+ boolWebcam: {
+ get() {
+ return this.$store.state.gui.dashboard.boolWebcam || this.$store.state.gui.webcam.bool
+ }
+ }
},
methods: {
changeSwitch(device, value) {
@@ -97,6 +105,10 @@ export default {
this.showMenu = false
this.$socket.sendObj('machine.services.restart', { service: "moonraker" })
},
+ doServiceRestartWebcam: function() {
+ this.showMenu = false
+ this.$socket.sendObj('machine.services.restart', { service: "webcamd" })
+ },
doHostReboot: function() {
this.showMenu = false
this.$socket.sendObj('machine.reboot', { })