mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
added relation name autocomplete to relation map connection creation
This commit is contained in:
@@ -236,7 +236,7 @@ async function showDialog() {
|
||||
$dialog.on('focus', '.attribute-name', function (e) {
|
||||
attributeAutocompleteService.initAttributeNameAutocomplete({
|
||||
$el: $(this),
|
||||
attrTypeFunc: () => {
|
||||
attributeType: () => {
|
||||
const attribute = attributesModel.getTargetAttribute(this);
|
||||
return (attribute().type === 'relation' || attribute().type === 'relation-definition') ? 'relation' : 'label';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user