FileInputView: Event on attachment change to hide/show microphone
This commit is contained in:
parent
43e5d16020
commit
b08c10a547
3 changed files with 84 additions and 76 deletions
|
@ -122,11 +122,13 @@
|
|||
|
||||
onCloseAttachment(attachment) {
|
||||
this.attachments = _.without(this.attachments, attachment);
|
||||
this.trigger('attachments-changed');
|
||||
this.render();
|
||||
},
|
||||
|
||||
onClose() {
|
||||
this.attachments = [];
|
||||
this.trigger('attachments-changed');
|
||||
this.render();
|
||||
},
|
||||
|
||||
|
@ -267,6 +269,7 @@
|
|||
|
||||
this.attachments.push(attachment);
|
||||
this.render();
|
||||
this.trigger('attachments-changed');
|
||||
},
|
||||
|
||||
async maybeAddAttachment(file) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue