Dirty fix #63
This commit is contained in:
parent
6b0359e432
commit
84fe22275b
1 changed files with 8 additions and 16 deletions
|
|
@ -181,14 +181,10 @@ export default {
|
||||||
this.modalConfirm("Shut down microscope?").then(
|
this.modalConfirm("Shut down microscope?").then(
|
||||||
() => {
|
() => {
|
||||||
if ("shutdown" in this.systemActionLinks) {
|
if ("shutdown" in this.systemActionLinks) {
|
||||||
axios
|
this.$store.commit("resetState");
|
||||||
.post(this.systemActionLinks.shutdown)
|
axios.post(this.systemActionLinks.shutdown).catch(error => {
|
||||||
.catch(error => {
|
console.log(error); // Be quiet when empty response is recieved
|
||||||
this.modalError(error); // Let mixin handle error
|
});
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
this.$store.commit("resetState");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
() => {}
|
() => {}
|
||||||
|
|
@ -198,14 +194,10 @@ export default {
|
||||||
this.modalConfirm("Restart microscope?").then(
|
this.modalConfirm("Restart microscope?").then(
|
||||||
() => {
|
() => {
|
||||||
if ("reboot" in this.systemActionLinks) {
|
if ("reboot" in this.systemActionLinks) {
|
||||||
axios
|
this.$store.commit("resetState");
|
||||||
.post(this.systemActionLinks.reboot)
|
axios.post(this.systemActionLinks.reboot).catch(error => {
|
||||||
.catch(error => {
|
console.log(error); // Be quiet when empty response is recieved
|
||||||
this.modalError(error); // Let mixin handle error
|
});
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
this.$store.commit("resetState");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
() => {}
|
() => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue