mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
fix(webui): show clear toast when upload fails due to localhost s3 endpoint (#507)
* fix(webui): show clear toast when upload fails due to localhost s3 endpoint * fix(webui): center empty state in file browser list area
This commit is contained in:
@@ -215,6 +215,9 @@ export function MobileFileBrowser({
|
||||
onMutate: () => {
|
||||
return { files: [...pendingFilesToUpload] }
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(m.failed_upload_file())
|
||||
},
|
||||
onSuccess: async (data, _variables, context) => {
|
||||
const currentFiles = context?.files || []
|
||||
const filesProgressInfo = currentFiles
|
||||
|
||||
Reference in New Issue
Block a user