small fixes related to inherited attributes

This commit is contained in:
zadam
2020-08-11 22:52:17 +02:00
parent 8d0df6ddb9
commit 935e5de493
6 changed files with 30 additions and 9 deletions

View File

@@ -295,12 +295,15 @@ export default class AttributeDetailWidget extends BasicWidget {
}
}
this.$saveAndCloseButton.toggle(!!isOwned);
if (isOwned) {
this.$attrIsOwnedBy.hide();
}
else {
this.$attrIsOwnedBy
.show()
.empty()
.append(attribute.type === 'label' ? 'Label' : 'Relation')
.append(' is owned by note ')
.append(await linkService.createNoteLink(attribute.noteId))