- `
-
- for(const note of notes.items) {
- body += `
-
- ${escapeHtml(note.name)}
-
+ if(notes.items.length < 1) {
+ body = `${tr("no_notes")}`
+ } else {
+ body = `
+ ${tr("select_or_create_new")}
+
`
- }
-
- body += `
`
+
+ for(const note of notes.items) {
+ body += `
+
+ ${escapeHtml(note.name)}
+
+ `
+ }
+
+ body += `
`
+ }
}
let frame = MessageBox(tr("select_note"), body, [tr("cancel")], [Function.noop]);
diff --git a/locales/en.strings b/locales/en.strings
index 4cae28b2..90542d92 100644
--- a/locales/en.strings
+++ b/locales/en.strings
@@ -411,6 +411,8 @@
"select_or_create_new" = "Select existing note or