Re-add the "send more files" option to file drop
This commit is contained in:
parent
b30f50b96d
commit
47373c447b
3 changed files with 17 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
v-on:add-files="(files) => addAttachments(files)"
|
||||
:batch="uploadBatch"
|
||||
v-on:close="closeFileMode"
|
||||
v-on:reset="resetFileMode"
|
||||
:fileModeMode="true"
|
||||
:defaultRootMessageText="$t('file_mode.files')"
|
||||
/>
|
||||
|
|
@ -1975,6 +1976,10 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
resetFileMode() {
|
||||
this.uploadBatch = this.$matrix.attachmentManager.createUpload(this.room);
|
||||
},
|
||||
|
||||
closeFileMode() {
|
||||
this.uploadBatch?.cancel();
|
||||
this.uploadBatch = undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue