diff --git a/webapp/src/components/labThingsComponents/serverSpecifiedActionButton.vue b/webapp/src/components/labThingsComponents/serverSpecifiedActionButton.vue
index d855092b..a49d3a0a 100644
--- a/webapp/src/components/labThingsComponents/serverSpecifiedActionButton.vue
+++ b/webapp/src/components/labThingsComponents/serverSpecifiedActionButton.vue
@@ -11,6 +11,7 @@
:modal-progress="actionData.modal_progress"
@response="actionResponse"
@error="modalError"
+ @finished="actionFinished"
/>
@@ -33,11 +34,27 @@ export default {
},
methods: {
- actionResponse: function () {
+ /**
+ * Runs when the ActionButton's action completes successfully.
+ *
+ * It is used to send success notifications. It also forwards the response to the
+ * parent.
+ */
+ actionResponse: function (response) {
if (this.actionData.notify_on_success) {
this.modalNotify(this.actionData.success_message);
+ this.$emit("response", response);
}
},
+ /**
+ * Runs when the ActionButton's action finishes in any way (error, cancel,
+ * completion).
+ *
+ * This forwards the event to the parent
+ */
+ actionFinished: function () {
+ this.$emit("finished");
+ },
},
};
diff --git a/webapp/src/components/modalComponents/calibrationWizardComponents/calibrationWizardTask.vue b/webapp/src/components/modalComponents/calibrationWizardComponents/calibrationWizardTask.vue
index 57151b7b..f2345223 100644
--- a/webapp/src/components/modalComponents/calibrationWizardComponents/calibrationWizardTask.vue
+++ b/webapp/src/components/modalComponents/calibrationWizardComponents/calibrationWizardTask.vue
@@ -27,6 +27,7 @@ gets very confusing.
v-if="currentStep"
:key="stepIndex"
v-bind="currentStep.props"
+ @awaiting-user="handleAwaitingUser"
/>