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:
Yiling-J
2026-10-30 14:16:34 +08:00
committed by GitHub
parent f0bdccf713
commit 3b00a42a89
9 changed files with 254 additions and 29 deletions
@@ -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