improvements to note tooltip - include (some) notePath and attributes

This commit is contained in:
zadam
2020-09-08 21:45:07 +02:00
parent 8b4cf474bd
commit 0c5f842626
5 changed files with 58 additions and 75 deletions

View File

@@ -465,19 +465,7 @@ export default class AttributeEditorWidget extends TabAwareWidget {
async renderOwnedAttributes(ownedAttributes, saved) {
ownedAttributes = ownedAttributes.filter(oa => !oa.isDeleted);
const $attributesContainer = $("<div>");
for (let i = 0; i < ownedAttributes.length; i++) {
const attribute = ownedAttributes[i];
attributeRenderer.renderAttribute(attribute, $attributesContainer, true);
if (i < ownedAttributes.length - 1) {
$attributesContainer.append(" ");
}
}
let htmlAttrs = $attributesContainer.html();
let htmlAttrs = (await attributeRenderer.renderAttributes(ownedAttributes, true)).html();
if (htmlAttrs.length > 0) {
htmlAttrs += "&nbsp;";