db anonymization implementation

This commit is contained in:
azivner
2017-12-16 00:05:37 -05:00
parent fab69f411e
commit 5b08dfefd3
9 changed files with 74 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ const settings = (function() {
dialogEl.dialog({
modal: true,
width: 800
width: 900
});
tabsEl.tabs();
@@ -161,5 +161,17 @@ settings.addModule((async function () {
showMessage("Full sync triggered");
});
return {};
})());
settings.addModule((async function () {
const anonymizeButton = $("#anonymize-button");
anonymizeButton.click(async () => {
await server.post('anonymization/anonymize');
showMessage("Created anonymized database");
});
return {};
})());