mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 00:36:33 +01:00
display current note ID in editor (useful in Electron which doesn't have address bar)
This commit is contained in:
@@ -6,6 +6,8 @@ const noteEditor = (function() {
|
||||
const protectButton = $("#protect-button");
|
||||
const unprotectButton = $("#unprotect-button");
|
||||
const noteDetailWrapperEl = $("#note-detail-wrapper");
|
||||
const noteIdDisplayEl = $("#note-id-display");
|
||||
|
||||
let editor = null;
|
||||
|
||||
let currentNote = null;
|
||||
@@ -101,6 +103,8 @@ const noteEditor = (function() {
|
||||
noteTitleEl.focus().select();
|
||||
}
|
||||
|
||||
noteIdDisplayEl.html(noteId);
|
||||
|
||||
await protected_session.ensureProtectedSession(currentNote.detail.is_protected, false);
|
||||
|
||||
if (currentNote.detail.is_protected) {
|
||||
|
||||
Reference in New Issue
Block a user