Run modal callback even if it never shows
This commit is contained in:
parent
83aefe87c3
commit
6d924c92ef
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue