From e8c5d38b3af3fd22bf97f8cee4907b4e508ef1bf Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 16 Feb 2024 09:39:19 +0100 Subject: [PATCH] change messages --- main.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index ac2f832..b1b2ab7 100644 --- a/main.js +++ b/main.js @@ -1305,7 +1305,7 @@ function migratelegacystorage() var legacy = localStorage.getItem("data"); if (legacy) { - alert("Old data model detected. Click ok to migrate, or close app.") + alert("Hey! I am about to migrate your notes to the brand new data model. No worries, I will keep a backup somewhere in case things go wrong. Take a deep breath, and click ok when you're ready.") legacy = JSON.parse(legacy); var index = {}; legacy.reverse().forEach( (note, i) => @@ -1366,7 +1366,14 @@ function fetch() { if (!filecontent) { - pushall().then(resolve); + if (confirm("No remote index found. Init remote now?")) + { + pushall().then(resolve); + } + else + { + resolve(); + } } else { @@ -2813,7 +2820,7 @@ function bind(title, content, pos) { if (workerid) { - showtemporaryinfo("current note not yet serialized"); + showtemporaryinfo("Cannot open '" + title + "' because current note not yet serialized"); return; }