Stop showing cancel modals on action button my default
This commit is contained in:
parent
59618ccfbf
commit
0eea10f2b0
1 changed files with 0 additions and 7 deletions
|
|
@ -349,13 +349,6 @@ export default {
|
||||||
this.$emit("completed", response.data.output);
|
this.$emit("completed", response.data.output);
|
||||||
} else if (response.data.status == "cancelled") {
|
} else if (response.data.status == "cancelled") {
|
||||||
this.$emit("cancelled", response.data);
|
this.$emit("cancelled", response.data);
|
||||||
let cancelMessage;
|
|
||||||
if (this.submitLabel != "") {
|
|
||||||
cancelMessage = ` "${this.submitLabel}" `;
|
|
||||||
} else {
|
|
||||||
cancelMessage = " ";
|
|
||||||
}
|
|
||||||
this.modalNotify(`The action ${cancelMessage} was cancelled.`);
|
|
||||||
} else if (response.data.status == "error") {
|
} else if (response.data.status == "error") {
|
||||||
const err_msg = this.log?.[0]?.message ?? "Unknown error";
|
const err_msg = this.log?.[0]?.message ?? "Unknown error";
|
||||||
this.$emit("error", err_msg);
|
this.$emit("error", err_msg);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue