Skip to content

Build your personal knowledge base with Trilium Notes

fix(import): use a check icon and clear the progress bar on import success

Elian Doranb5d78b276c0f
diff --git a/apps/client/src/services/import.ts b/apps/client/src/services/import.ts
index 4825e588bd..f891d59548 100644
--- a/apps/client/src/services/import.ts
+++ b/apps/client/src/services/import.ts
@@ -68,7 +68,10 @@ function makeToast(id: string, message: string): ToastOptionsWithRequiredId {
return {
id,
message,
- icon: "plus"
+ icon: "bx bx-check",
+ // This toast replaces the in-progress one (same id), and showPersistent merges fields rather than
+ // swapping the object — so clear the progress explicitly, otherwise the finished bar lingers at 100%.
+ progress: undefined
};
}