Add toast when import errors
This commit is contained in:
parent
cce9670abd
commit
e819bfe4eb
7 changed files with 50 additions and 1 deletions
|
@ -309,6 +309,20 @@ export function renderToast({
|
|||
);
|
||||
}
|
||||
|
||||
if (toastType === ToastType.FailedToImportBackup) {
|
||||
return (
|
||||
<Toast
|
||||
onClose={hideToast}
|
||||
toastAction={{
|
||||
label: i18n('icu:Toast__ActionLabel--SubmitLog'),
|
||||
onClick: onShowDebugLog,
|
||||
}}
|
||||
>
|
||||
{i18n('icu:Toast--FailedToImportBackup')}
|
||||
</Toast>
|
||||
);
|
||||
}
|
||||
|
||||
if (toastType === ToastType.FileSaved) {
|
||||
return (
|
||||
<Toast
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue