diff --git a/webapp/src/components/labThingsComponents/actionButton.vue b/webapp/src/components/labThingsComponents/actionButton.vue index 6f1df1a9..746d88a9 100644 --- a/webapp/src/components/labThingsComponents/actionButton.vue +++ b/webapp/src/components/labThingsComponents/actionButton.vue @@ -349,7 +349,13 @@ export default { this.$emit("completed", response.data.output); } else if (response.data.status == "cancelled") { this.$emit("cancelled", response.data); - this.modalNotify(`The action '${this.submitLabel}' was cancelled.`); + let cancelMessage; + if (this.submitLabel != "") { + cancelMessage = ` "${this.submitLabel}" `; + } else { + cancelMessage = " "; + } + this.modalNotify(`The action ${cancelMessage} was cancelled.`); } else if (response.data.status == "error") { const err_msg = this.log?.[0]?.message ?? "Unknown error"; this.$emit("error", err_msg);