From 84fe22275b5702aaafc1e19bfdea296591bdb79e Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 13 Mar 2020 16:45:29 +0000 Subject: [PATCH] Dirty fix #63 --- .../controlComponents/paneStatus.vue | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/components/controlComponents/paneStatus.vue b/src/components/controlComponents/paneStatus.vue index d64cd5f4..ea597bd8 100644 --- a/src/components/controlComponents/paneStatus.vue +++ b/src/components/controlComponents/paneStatus.vue @@ -181,14 +181,10 @@ 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"); - }); + this.$store.commit("resetState"); + axios.post(this.systemActionLinks.shutdown).catch(error => { + console.log(error); // Be quiet when empty response is recieved + }); } }, () => {} @@ -198,14 +194,10 @@ 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"); - }); + this.$store.commit("resetState"); + axios.post(this.systemActionLinks.reboot).catch(error => { + console.log(error); // Be quiet when empty response is recieved + }); } }, () => {}