Allow creating new entities directly from AddPersons modal

This commit is contained in:
2025-09-11 21:42:25 +02:00
parent 4c73c4d9d0
commit e4fe5bff68
3 changed files with 14 additions and 1 deletions

View File

@@ -32,11 +32,13 @@ interface AddPersonsConfig {
buttonTitle: string;
modalTitle: string;
options: SearchOptions;
allowCreate?: boolean;
}
const props = withDefaults(defineProps<AddPersonsConfig>(), {
suggested: () => [],
selected: () => [],
allowCreate: () => true,
});
const emit = defineEmits<{