Loading src/components/controlComponents/paneStatus.vue +8 −16 Original line number Diff line number Diff line Loading @@ -181,13 +181,9 @@ export default { this.modalConfirm("Shut down microscope?").then( () => { if ("shutdown" in this.systemActionLinks) { axios .post(this.systemActionLinks.shutdown) .catch(error => { this.modalError(error); // Let mixin handle error }) .finally(() => { this.$store.commit("resetState"); axios.post(this.systemActionLinks.shutdown).catch(error => { console.log(error); // Be quiet when empty response is recieved }); } }, Loading @@ -198,13 +194,9 @@ export default { this.modalConfirm("Restart microscope?").then( () => { if ("reboot" in this.systemActionLinks) { axios .post(this.systemActionLinks.reboot) .catch(error => { this.modalError(error); // Let mixin handle error }) .finally(() => { this.$store.commit("resetState"); axios.post(this.systemActionLinks.reboot).catch(error => { console.log(error); // Be quiet when empty response is recieved }); } }, Loading Loading
src/components/controlComponents/paneStatus.vue +8 −16 Original line number Diff line number Diff line Loading @@ -181,13 +181,9 @@ export default { this.modalConfirm("Shut down microscope?").then( () => { if ("shutdown" in this.systemActionLinks) { axios .post(this.systemActionLinks.shutdown) .catch(error => { this.modalError(error); // Let mixin handle error }) .finally(() => { this.$store.commit("resetState"); axios.post(this.systemActionLinks.shutdown).catch(error => { console.log(error); // Be quiet when empty response is recieved }); } }, Loading @@ -198,13 +194,9 @@ export default { this.modalConfirm("Restart microscope?").then( () => { if ("reboot" in this.systemActionLinks) { axios .post(this.systemActionLinks.reboot) .catch(error => { this.modalError(error); // Let mixin handle error }) .finally(() => { this.$store.commit("resetState"); axios.post(this.systemActionLinks.reboot).catch(error => { console.log(error); // Be quiet when empty response is recieved }); } }, Loading