Run modal callback even if it never shows

This commit is contained in:
Joel Collins 2020-05-27 14:19:32 +01:00
parent 83aefe87c3
commit 6d924c92ef

View file

@ -244,13 +244,15 @@ export default {
}) })
.then(() => { .then(() => {
// Check if this calibration wizard can actually do anything useful // Check if this calibration wizard can actually do anything useful
console.log(this.isUseful);
if (this.isUseful) { if (this.isUseful) {
this.ready = true; this.ready = true;
this.stepValue = 0; this.stepValue = 0;
// Show the modal // Show the modal
var el = this.$refs["calibrationModalEl"]; var el = this.$refs["calibrationModalEl"];
this.showModalElement(el); // Calls the mixin this.showModalElement(el); // Calls the mixin
} else {
// If not useful, we just return the onClose event immediately
this.onHide();
} }
}); });
}, },