This commit is contained in:
zadam 2020-07-04 00:40:41 +02:00
parent 69d529ada1
commit 2e24111c2b
2 changed files with 5 additions and 2 deletions

View file

@ -156,7 +156,7 @@ export default class AttributeDetailWidget extends BasicWidget {
this.$relatedNotesMoreNotes.hide();
}
this.$attrEditName.val(attr.name).focus();
this.$attrEditName.val(attr.name);
this.$attrEditValue.val(attr.value);
this.$widget.css("left", x - this.$widget.width() / 2);

View file

@ -147,8 +147,9 @@ const TPL = `
}
.add-new-attribute-button {
color: var(--muted-text-color);
position: absolute;
bottom: 5px;
bottom: 5px;
right: 5px;
cursor: pointer;
border: 1px solid transparent;
@ -437,6 +438,8 @@ export default class NoteAttributesWidget extends TabAwareWidget {
this.$inheritedExpanderText.text(inheritedAttributes.length + ' inherited ' + this.attrPlural(inheritedAttributes.length));
this.$inheritedAttributes.empty();
await this.renderAttributes(inheritedAttributes, this.$inheritedAttributes);
this.parseAttributes();