mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
converting note properties to methods
This commit is contained in:
@@ -9,7 +9,7 @@ function isNotePathArchived(notePath) {
|
||||
const noteId = notePath[notePath.length - 1];
|
||||
const note = becca.notes[noteId];
|
||||
|
||||
if (note.isArchived()) {
|
||||
if (note.isArchived) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ function getNoteTitleForPath(notePathArray) {
|
||||
* Returns notePath for noteId from cache. Note hoisting is respected.
|
||||
* Archived notes are also returned, but non-archived paths are preferred if available
|
||||
* - this means that archived paths is returned only if there's no non-archived path
|
||||
* - you can check whether returned path is archived using isArchived()
|
||||
* - you can check whether returned path is archived using isArchived
|
||||
*/
|
||||
function getSomePath(note, path = []) {
|
||||
// first try to find note within hoisted note, otherwise take any existing note path
|
||||
|
||||
Reference in New Issue
Block a user