added force note sync functionality to context menu

This commit is contained in:
azivner
2017-12-30 21:44:26 -05:00
parent a8e45019e4
commit fdcc833f6d
4 changed files with 37 additions and 3 deletions

View File

@@ -13,4 +13,10 @@ async function syncNow() {
showError("Sync failed: " + result.message);
}
}
async function forceNoteSync(noteId) {
const result = await server.post('sync/force-note-sync/' + noteId);
showMessage("Note added to sync queue.");
}