chore: Use globalConfig in NetworkNotification (#3871)
This commit is contained in:
parent
b1e1d7e423
commit
e0d24e0a73
4 changed files with 37 additions and 12 deletions
|
@ -456,12 +456,15 @@ export default {
|
|||
return;
|
||||
}
|
||||
if (checkFileSizeLimit(file, MAXIMUM_FILE_UPLOAD_SIZE)) {
|
||||
const upload = new DirectUpload(file.file, '/rails/active_storage/direct_uploads', null, file.file.name);
|
||||
const upload = new DirectUpload(
|
||||
file.file,
|
||||
'/rails/active_storage/direct_uploads',
|
||||
null,
|
||||
file.file.name
|
||||
);
|
||||
upload.create((error, blob) => {
|
||||
if (error) {
|
||||
this.showAlert(
|
||||
error
|
||||
);
|
||||
this.showAlert(error);
|
||||
} else {
|
||||
this.attachedFiles.push({
|
||||
currentChatId: this.currentChat.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue