mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
implementation of forcing full (re)sync
This commit is contained in:
@@ -149,5 +149,17 @@ settings.addModule((async function () {
|
||||
buildRevisionEl.html(appInfo.build_revision);
|
||||
buildRevisionEl.attr('href', 'https://github.com/zadam/trilium/commit/' + appInfo.build_revision);
|
||||
|
||||
return {};
|
||||
})());
|
||||
|
||||
settings.addModule((async function () {
|
||||
const forceFullSyncButton = $("#force-full-sync-button");
|
||||
|
||||
forceFullSyncButton.click(async () => {
|
||||
await server.post('sync/force-full-sync');
|
||||
|
||||
showMessage("Full sync triggered");
|
||||
});
|
||||
|
||||
return {};
|
||||
})());
|
||||
Reference in New Issue
Block a user