added relation name autocomplete to relation map connection creation

This commit is contained in:
azivner
2018-11-13 10:42:55 +01:00
parent 8dc32e581e
commit 144e814b02
4 changed files with 28 additions and 8 deletions

View File

@@ -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';
},