bring back "create and link note" into more places, fixes #1653

This commit is contained in:
zadam
2021-02-18 20:10:44 +01:00
parent 4cbf9c2e86
commit 0c9a11db6f
6 changed files with 15 additions and 6 deletions

View File

@@ -279,7 +279,7 @@ export default class AttributeDetailWidget extends TabAwareWidget {
this.$rowTargetNote = this.$widget.find('.attr-row-target-note');
this.$inputTargetNote = this.$widget.find('.attr-input-target-note');
noteAutocompleteService.initNoteAutocomplete(this.$inputTargetNote)
noteAutocompleteService.initNoteAutocomplete(this.$inputTargetNote, {allowCreatingNotes: true})
.on('autocomplete:noteselected', (event, suggestion, dataset) => {
if (!suggestion.notePath) {
return false;