Enhance upload functionality in UploadStore and UI: implement retry mechanism for failed uploads, allowing users to manually retry uploads from the UploadSnackbar. Update translations to include retry options and improve error handling for transient issues during media uploads.

This commit is contained in:
Leonid Pershin
2026-07-25 08:38:12 +03:00
parent de7e27c80f
commit ba023bc416
4 changed files with 83 additions and 18 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ type RequestOptions = {
skipRefresh?: boolean
}
async function refreshAccessToken(): Promise<boolean> {
export async function refreshAccessToken(): Promise<boolean> {
if (!refreshInFlight) {
refreshInFlight = (async () => {
try {
+2
View File
@@ -19,6 +19,7 @@ const resources = {
common: {
save: 'Сохранить',
cancel: 'Отмена',
retry: 'Повторить',
delete: 'Удалить',
create: 'Создать',
loading: 'Загрузка…',
@@ -279,6 +280,7 @@ const resources = {
common: {
save: 'Save',
cancel: 'Cancel',
retry: 'Retry',
delete: 'Delete',
create: 'Create',
loading: 'Loading…',