ask user to confirm removing image attachment

This commit is contained in:
liamcottle
2024-12-29 19:59:14 +13:00
parent eec96e45eb
commit 67e52444aa

View File

@@ -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) {