feat(database): Added database corruption dialog

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-01-04 22:29:24 +11:00
parent 91ba75b21b
commit 8a122fb8f9
4 changed files with 16 additions and 21 deletions
-15
View File
@@ -29,21 +29,6 @@ router.beforeEach(async () => {
setupHooks();
initialNavigation(state);
listen("database_corrupted", (event) => {
createModal(
ModalType.Notification,
{
title: "Database corrupted",
description: `Drop encountered an error while reading your download. A copy can be found at: "${(
event.payload as unknown as string
).toString()}"`,
buttonText: "Close"
},
(e, c) => c()
);
})
useHead({
title: "Drop",
});