mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix force note sync
This commit is contained in:
parent
867d794e17
commit
29769ed91d
@ -8,6 +8,7 @@ import treeUtils from './tree_utils.js';
|
|||||||
import branchPrefixDialog from '../dialogs/branch_prefix.js';
|
import branchPrefixDialog from '../dialogs/branch_prefix.js';
|
||||||
import infoService from "./info.js";
|
import infoService from "./info.js";
|
||||||
import treeCache from "./tree_cache.js";
|
import treeCache from "./tree_cache.js";
|
||||||
|
import syncService from "./sync.js";
|
||||||
|
|
||||||
const $tree = $("#tree");
|
const $tree = $("#tree");
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import utils from './utils.js';
|
import server from './server.js';
|
||||||
import infoService from "./info.js";
|
import infoService from "./info.js";
|
||||||
|
|
||||||
async function syncNow() {
|
async function syncNow() {
|
||||||
@ -19,7 +19,7 @@ async function syncNow() {
|
|||||||
$("#sync-now-button").click(syncNow);
|
$("#sync-now-button").click(syncNow);
|
||||||
|
|
||||||
async function forceNoteSync(noteId) {
|
async function forceNoteSync(noteId) {
|
||||||
const result = await server.post('sync/force-note-sync/' + noteId);
|
await server.post('sync/force-note-sync/' + noteId);
|
||||||
|
|
||||||
infoService.showMessage("Note added to sync queue.");
|
infoService.showMessage("Note added to sync queue.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user