From aeb6ae1ec97ef3c0899a857937d74f9f70ee5068 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 6 Feb 2021 21:39:04 +0100 Subject: [PATCH] feature: disable power devices with attribute "locked_while_printing" in moonraker while printing Signed-off-by: Stefan Dej --- src/components/TopCornerMenu.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/TopCornerMenu.vue b/src/components/TopCornerMenu.vue index e810789f..f4bdb978 100644 --- a/src/components/TopCornerMenu.vue +++ b/src/components/TopCornerMenu.vue @@ -31,7 +31,7 @@
Power Devices - + mdi-{{ device.status === 'on' ? 'toggle-switch' : 'toggle-switch-off' }}{{ device.device }} @@ -62,6 +62,7 @@ export default { }, computed: { ...mapState({ + printer_state: state => state.printer.print_stats.state, devices: (state) => state.server.power.devices, }), countPowerDevices: {