Commit 6d924c92 authored by Joel Collins's avatar Joel Collins
Browse files

Run modal callback even if it never shows

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