mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
ask user to confirm removing image attachment
This commit is contained in:
parent
eec96e45eb
commit
67e52444aa
1 changed files with 8 additions and 0 deletions
|
|
@ -1160,8 +1160,16 @@ export default {
|
|||
this.$refs["file-input"].value = null;
|
||||
},
|
||||
removeImageAttachment: function() {
|
||||
|
||||
// ask user to confirm removing image attachment
|
||||
if(!confirm("Are you sure you want to remove this image attachment?")){
|
||||
return;
|
||||
}
|
||||
|
||||
// remove image
|
||||
this.newMessageImage = null;
|
||||
this.newMessageImageUrl = null;
|
||||
|
||||
},
|
||||
onImageSelected: function(imageBlob) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue