mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-14 20:22:10 +00:00
feat: add error toast
This commit is contained in:
parent
e8515e1990
commit
a03ac26b80
4 changed files with 7 additions and 3 deletions
|
@ -273,6 +273,7 @@
|
|||
"no_pending_invites": "You have no pending invites",
|
||||
"no_blocked_users": "You have no blocked users",
|
||||
"friend_code_copied": "Friend code copied",
|
||||
"undo_friendship_modal_text": "This will undo your friendship with {{displayName}}"
|
||||
"undo_friendship_modal_text": "This will undo your friendship with {{displayName}}",
|
||||
"image_process_failure": "Failure while processing the image"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -276,6 +276,7 @@
|
|||
"no_pending_invites": "Você não possui convites de amizade pendentes",
|
||||
"no_blocked_users": "Você não tem nenhum usuário bloqueado",
|
||||
"friend_code_copied": "Código de amigo copiado",
|
||||
"undo_friendship_modal_text": "Isso irá remover sua amizade com {{displayName}}"
|
||||
"undo_friendship_modal_text": "Isso irá remover sua amizade com {{displayName}}",
|
||||
"image_process_failure": "Falha ao processar a imagem"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -277,6 +277,7 @@
|
|||
"pending": "Pendentes",
|
||||
"no_pending_invites": "Não tens convites de amizade pendentes",
|
||||
"no_blocked_users": "Não tens nenhum utilizador bloqueado",
|
||||
"friend_code_copied": "Código de amigo copiado"
|
||||
"friend_code_copied": "Código de amigo copiado",
|
||||
"image_process_failure": "Falha ao processar a imagem"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,6 +60,7 @@ export const UserEditProfile = ({
|
|||
const { imagePath } = await window.electron
|
||||
.processProfileImage(filePaths[0])
|
||||
.catch(() => {
|
||||
showErrorToast(t("image_process_failure"));
|
||||
return { imagePath: null };
|
||||
})
|
||||
.finally(() => setIsLoadingImage(false));
|
||||
|
|
Loading…
Reference in a new issue