Skip to content

Commit

Permalink
Controlled vocabulary support
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhein committed Jan 31, 2025
1 parent 5030fa5 commit 5b34697
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
v-if="form"
v-bind="form"
@set="set"
@success="triggerDataChange"
@success="customSuccess"
></PkpForm>
</div>
</template>
Expand Down Expand Up @@ -58,4 +58,12 @@ const displayNoFieldsEnabled = computed(() => {
const {triggerDataChange} = useDataChanged();
const {set, form} = useForm(publicationForm);
async function customSuccess(data) {
await triggerDataChange();
// Some metadata fields need extra data from db not in publication object
if (props.formName === 'metadata') {
fetchForm();
}
}
</script>

0 comments on commit 5b34697

Please sign in to comment.