mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-01 05:54:09 +08:00
Backport #27985 by @lng2020 As title. Before that, there was no alert at all. After: ![error_toast](https://github.com/go-gitea/gitea/assets/70063547/c54ffeed-76f8-4c3a-b5dc-b9b3e0f8fc76) Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
This commit is contained in:
parent
824d40edc6
commit
60b51d0648
|
@ -248,6 +248,10 @@ export function initGlobalDropzone() {
|
|||
});
|
||||
}
|
||||
});
|
||||
this.on('error', function (file, message) {
|
||||
showErrorToast(message);
|
||||
this.removeFile(file);
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user