Allow Pick*Type to submit the form when selection an entity, and apply inside Event

This commit is contained in:
2023-11-28 12:35:19 +01:00
parent e902b6d409
commit 9b9c2774ad
10 changed files with 48 additions and 26 deletions

View File

@@ -56,6 +56,10 @@ export default {
suggested: {
type: Array,
default: []
},
label: {
type: String,
required: false,
}
},
emits: ['addNewEntity', 'removeEntity'],
@@ -80,6 +84,10 @@ export default {
};
},
translatedListOfTypes() {
if (this.label !== '') {
return this.label;
}
let trans = [];
this.types.forEach(t => {
if (this.$props.multiple) {