mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
new "disable_inclusion" attribute
This commit is contained in:
@@ -47,6 +47,13 @@ class Note extends Entity {
|
||||
return map;
|
||||
}
|
||||
|
||||
async hasAttribute(name) {
|
||||
const map = await this.getAttributeMap();
|
||||
|
||||
return map.hasOwnProperty(name);
|
||||
}
|
||||
|
||||
// WARNING: this doesn't take into account the possibility to have multi-valued attributes!
|
||||
async getAttribute(name) {
|
||||
return this.repository.getEntity("SELECT * FROM attributes WHERE noteId = ? AND name = ?", [this.noteId, name]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user