functionality to fill up / cleanup sync rows compared to the entity rows

This commit is contained in:
azivner
2017-12-19 22:04:51 -05:00
parent 72712bc24b
commit 5403f340ec
4 changed files with 53 additions and 1 deletions

View File

@@ -154,6 +154,7 @@ settings.addModule((async function () {
settings.addModule((async function () {
const forceFullSyncButton = $("#force-full-sync-button");
const fillSyncRowsButton = $("#fill-sync-rows-button");
forceFullSyncButton.click(async () => {
await server.post('sync/force-full-sync');
@@ -161,6 +162,12 @@ settings.addModule((async function () {
showMessage("Full sync triggered");
});
fillSyncRowsButton.click(async () => {
await server.post('sync/fill-sync-rows');
showMessage("Sync rows filled successfully");
});
return {};
})());