feat: Conversation transcript in widget (#2549)

This commit is contained in:
Muhsin Keloth
2021-07-13 11:31:21 +05:30
committed by GitHub
parent fc4ef1595b
commit 15085cfb98
13 changed files with 200 additions and 46 deletions

View File

@@ -29,6 +29,11 @@ export default {
data() {
return { isUploading: false };
},
computed: {
fileUploadSizeLimit() {
return MAXIMUM_FILE_UPLOAD_SIZE;
},
},
methods: {
getFileType(fileType) {
return fileType.includes('image') ? 'image' : 'file';
@@ -47,7 +52,11 @@ export default {
thumbUrl,
});
} else {
window.bus.$emit(BUS_EVENTS.ATTACHMENT_SIZE_CHECK_ERROR);
window.bus.$emit(BUS_EVENTS.SHOW_ALERT, {
message: this.$t('FILE_SIZE_LIMIT', {
MAXIMUM_FILE_UPLOAD_SIZE: this.fileUploadSizeLimit,
}),
});
}
} catch (error) {
// Error