Skip to content

Commit a663eaf

Browse files
committed
Controlled vocabulary support
1 parent 5030fa5 commit a663eaf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/pages/workflow/components/publication/WorkflowPublicationForm.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ const displayNoFieldsEnabled = computed(() => {
5555
return false;
5656
});
5757
58-
const {triggerDataChange} = useDataChanged();
58+
const {triggerDataChange} =
59+
{
60+
metadata: () => useDataChanged(customDataChange),
61+
}[props.formName] ?? useDataChanged();
5962
6063
const {set, form} = useForm(publicationForm);
64+
65+
async function customDataChange() {
66+
// Some metadata fields need extra data from db not in publication object
67+
fetchForm();
68+
}
6169
</script>

0 commit comments

Comments
 (0)