Send progress in main view

This commit is contained in:
N-Pex 2025-08-20 15:12:04 +02:00
parent 41232fbd90
commit e9accdebf1
11 changed files with 465 additions and 86 deletions

View file

@ -245,8 +245,8 @@ export default defineComponent({
batch: {
type: Object,
default: function () {
return reactive(createUploadBatch(null, null, 0));
default: () => {
return createUploadBatch(null, null);
},
},
},
@ -294,7 +294,7 @@ export default defineComponent({
this.currentItemIndex = newValue.length - 1;
}
},
deep: true,
deep: 1,
},
},
methods: {
@ -323,6 +323,7 @@ export default defineComponent({
},
sendAll() {
this.status = this.mainStatuses.SENDING;
this.$emit("close");
this.batch
.send(this.messageInput && this.messageInput.length > 0 ? this.messageInput : this.defaultRootMessageText)
.then(() => {