add status bar indicator for headless sync

This commit is contained in:
Nystik
2026-03-30 15:33:53 +02:00
parent cfe0f7f1b9
commit ecad257587
6 changed files with 461 additions and 29 deletions

View File

@@ -116,7 +116,7 @@ function mountRoutes(router, plugin) {
}
});
router.post("/unlink", (req, res) => {
router.post("/unlink", async (req, res) => {
const ctx = plugin.getCtx();
const syncManager = plugin.getSyncManager();
const { vaultId } = req.body;
@@ -126,7 +126,7 @@ function mountRoutes(router, plugin) {
}
try {
syncManager.unlinkVault(vaultId);
await syncManager.unlinkVault(vaultId);
res.json({ success: true });
} catch (e) {
ctx.log(`Failed to unlink vault: ${e.message}`);