feat(recovery): Added database recovery

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-01-04 21:08:14 +11:00
parent 005bab2fb8
commit 32ae7d5385
3 changed files with 62 additions and 4 deletions
+15
View File
@@ -29,6 +29,21 @@ 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",
});