mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
improvements to note tooltip - include (some) notePath and attributes
This commit is contained in:
@@ -205,9 +205,9 @@ export default class AttributeListWidget extends TabAwareWidget {
|
||||
return 'attribute' + (number === 1 ? '' : 's');
|
||||
}
|
||||
|
||||
renderInheritedAttributes(attributes, $container) {
|
||||
async renderInheritedAttributes(attributes, $container) {
|
||||
for (const attribute of attributes) {
|
||||
const $span = $("<span>")
|
||||
const $attr = await attributeRenderer.renderAttribute(attribute, false)
|
||||
.on('click', e => this.attributeDetailWidget.showAttributeDetail({
|
||||
attribute: {
|
||||
noteId: attribute.noteId,
|
||||
@@ -220,10 +220,8 @@ export default class AttributeListWidget extends TabAwareWidget {
|
||||
y: e.pageY
|
||||
}));
|
||||
|
||||
attributeRenderer.renderAttribute(attribute, $span, false);
|
||||
|
||||
$container
|
||||
.append($span)
|
||||
.append($attr)
|
||||
.append(" ");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user