Fixed onError propagation

This commit is contained in:
Joel Collins 2020-12-04 15:08:39 +00:00
parent 213dec3e5c
commit 08f653233b
8 changed files with 13 additions and 26 deletions

View file

@ -119,7 +119,6 @@ export default {
deleteAll: function() {
axios.all(this.allURLs.map(l => axios.delete(l))).then(() => {
console.log("Delete finished")
// Emit signal to update capture list
this.$root.$emit("globalUpdateCaptures");
});

View file

@ -18,7 +18,7 @@
:submit-label="'Create ZIP'"
:submit-data="captureIds"
@response="onResponse"
@error="onError"
@error="modalError"
>
</taskSubmitter>
</div>
@ -163,10 +163,6 @@ export default {
this.lastSessionId = response.output.id;
this.downloadUrl = `${this.zipGetterUri}/${this.lastSessionId}`;
this.downloadReady = true;
},
onError: function(error) {
this.modalError(error); // Let mixin handle error
}
}
};