Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add function to get pinned notebooks

thecodrr2ca24839790a
diff --git a/packages/core/collections/notebooks.js b/packages/core/collections/notebooks.js
index bc9f71bc7..131d6e4b1 100644
--- a/packages/core/collections/notebooks.js
+++ b/packages/core/collections/notebooks.js
@@ -64,6 +64,10 @@ export default class Notebooks {
return this._collection.getAllItems();
}
+ get pinned() {
+ return tfun.filter(".pinned === true")(this.all);
+ }
+
/**
*
* @param {string} id The id of the notebook