AddPersons: allow creation of person or thirdparty depending on allowed types

This commit is contained in:
nobohan
2022-02-14 11:12:37 +01:00
parent f8888462f1
commit 1c3f6c7c1e
5 changed files with 21 additions and 9 deletions

View File

@@ -64,6 +64,7 @@
<on-the-fly
v-if="queryLength >= 3 && (options.type.includes('person') || options.type.includes('thirdparty'))"
:buttonText="$t('onthefly.create.button', {q: query})"
:allowedTypes="options.type"
action="create"
@saveFormOnTheFly="saveFormOnTheFly"
ref="onTheFly">