Skip to content

Build your personal knowledge base with Trilium Notes

attribute overview shows only owned attributes

azivner6704b755d876
diff --git a/package-lock.json b/package-lock.json
index e7193a97fb..8d7766c32f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "trilium",
- "version": "0.26.1",
+ "version": "0.27.0-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/src/public/javascripts/services/attributes.js b/src/public/javascripts/services/attributes.js
index d9232d0f40..ac362371df 100644
--- a/src/public/javascripts/services/attributes.js
+++ b/src/public/javascripts/services/attributes.js
@@ -85,8 +85,11 @@ async function showAttributes() {
$promotedAttributesContainer.empty().append($tbody);
}
else if (note.type !== 'relation-map') {
- if (attributes.length > 0) {
- for (const attribute of attributes) {
+ // display only "own" notes
+ const ownedAttributes = attributes.filter(attr => attr.noteId === note.noteId);
+
+ if (ownedAttributes.length > 0) {
+ for (const attribute of ownedAttributes) {
if (attribute.type === 'label') {
$attributeListInner.append(utils.formatLabel(attribute) + " ");
}
diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css
index f5702870a3..17419d075f 100644
--- a/src/public/stylesheets/desktop.css
+++ b/src/public/stylesheets/desktop.css
@@ -53,6 +53,7 @@
padding: 10px 0 10px 0;
margin: 0 10px 0 16px;
border: 1px solid #ccc;
+ border-radius: 5px;
}
#context-menu-container {