Reset send information and better state check before cancel.
This commit is contained in:
parent
10af030fce
commit
fe0b0f59c8
2 changed files with 5 additions and 1 deletions
|
|
@ -1573,7 +1573,9 @@ export default {
|
||||||
|
|
||||||
cancelSendAttachment() {
|
cancelSendAttachment() {
|
||||||
this.$refs.attachment.value = null;
|
this.$refs.attachment.value = null;
|
||||||
|
if (this.sendingStatus != this.sendStatuses.INITIAL) {
|
||||||
this.cancelSendAttachments();
|
this.cancelSendAttachments();
|
||||||
|
}
|
||||||
this.currentFileInputs = null;
|
this.currentFileInputs = null;
|
||||||
this.attachmentCaption = undefined;
|
this.attachmentCaption = undefined;
|
||||||
this.currentSendError = null;
|
this.currentSendError = null;
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,8 @@ export default {
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.sendingStatus = this.sendStatuses.SENT;
|
this.sendingStatus = this.sendStatuses.SENT;
|
||||||
|
this.sendingAttachments = [];
|
||||||
|
this.sendingRootEventId = null;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error("ERROR", err);
|
console.error("ERROR", err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue