Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2018-09-12 11:54:17 +0300
committerPhie <phie@phie.ovh>2018-09-12 11:54:17 +0300
commit3cfda49a48be485ad94459d043fb6bebbf47897a (patch)
tree08273a8bb8db8e88d1c3c02a535256e4b4421109 /settings
parentf6d9be6b6c7a66587ebf1c4a4447bf454b126304 (diff)
export notes
Diffstat (limited to 'settings')
-rw-r--r--settings/index.html6
-rw-r--r--settings/settings.js6
2 files changed, 11 insertions, 1 deletions
diff --git a/settings/index.html b/settings/index.html
index 7c6f1bf..1d6b879 100644
--- a/settings/index.html
+++ b/settings/index.html
@@ -80,7 +80,11 @@
Import from Google Keep (only on desktop client)
</td>
</tr>
-
+ <tr>
+ <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="export">
+ Export all notes
+ </td>
+ </tr>
</table>
diff --git a/settings/settings.js b/settings/settings.js
index b009914..722900e 100644
--- a/settings/settings.js
+++ b/settings/settings.js
@@ -50,6 +50,12 @@ document.getElementById("cloudsync").onclick = function () {
return false;
};
+document.getElementById("export").onclick = function () {
+ const url = RequestBuilder.sRequestBuilder.buildUrl("/notes/export");
+ var win = window.open(url, '_blank');
+ win.focus();
+}
+
document.getElementById("import").onclick = function () {
var settingsHelper = new SettingsHelper();
var {