mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-07-24 00:42:59 +10:00
feat(recovery): Added database recovery
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user